PHP的for为什么不能正常输出mysql数据?
<?php$con=mysqli_connect('localhost','root','mark9394','test');$myarray=mysqli_fetch_...
<?php$con = mysqli_connect('localhost','root','mark9394','test');$myarray = mysqli_fetch_assoc(mysqli_query($con,'select * from search'));for($i=0;$i<3;$i++) {echo $myarray['title'];}?>输出的结果却是 baidu baidu baidu for怎么和while不一样呢?
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询