notice: array to string conversion in php

后端 未结 2 2063
被撕碎了的回忆
被撕碎了的回忆 2021-02-10 09:53
prepare(\"SELECT p_id FROM players_to_team WHERE t_id = ?\");

    $t         


        
2条回答
  •  粉色の甜心
    2021-02-10 10:20

    Try replacing $player[] = array(); by $player = array(); at the beginning (line 2).

    This is because that you declare an array at the index 0 of this variable which is told to be an array because of the []. You therefore try to place an array in your array, making it multidimensional.

提交回复
热议问题