$data = mysql_query(" SELECT * FROM user_pokemon_db WHERE user_id = '".$id."' ");
while($rows = mysql_fetch_assoc($data))
{
$db_id = $rows['id'];
$array[] = array($db_id);
}
foreach($array as $value)
{
echo '<input type="radio" name="change" value="'.$value.'"><br>';
}
我在無線電行上收到錯誤。收音機中的陣列到字符串轉換錯誤
Array to string conversion
但是,當我print_r數組,值完美取得和分配在數組中。 問題是什麼?
取代'$陣列[] =陣列($ DB_ID);'與' $ array [] = $ db_id;' –
thnks !!發佈它作爲答案! :) – user3545779