快速的问题......我的SQL查询吐出此数据...PHP SQL,查询返回的数据只有一行
Array ([id] => 1 [name] => Test Name [text] => This is text [image] => image.jpg)
当有两行数据,是有什么错我的php代码?
$query = "SELECT id, name, text, image FROM categories";
$results = mysql_query($query, $connection);
$results = mysql_fetch_assoc($results);
感谢Madbreakers对你的帮助 – user979331 2012-03-10 05:40:13
“谢谢”是好的,但你可能会想赞成票,你发现有帮助的任何答案,并接受你认为最好的答案是你的问题。 – Madbreaks 2012-03-10 05:41:22