我的数据库示例如下所示
database:test
table:test
id name password message active
1 test testpass testmsg no
2 test2 testtest testmsg2 no当我运行sql查询并在php中显示它时,它只给出一个结果。php部分是,
$a=mysqli_query($con,"select name from test where active='no'");
$b=mysqli_fetch_array($a);
print_r($b);它只显示了第一条记录
test有没有人能建议我,我哪里做错了?
发布于 2013-06-26 17:18:43
试试这个:
echo "<pre>";
print_r($b);
echo "</pre>";https://stackoverflow.com/questions/17316090
复制相似问题