duansha8115
2014-09-08 17:36
浏览 182
已采纳

警告:mysqli_fetch_array()期望参数1为mysqli_result,[closed]中给出的字符串

<?php
 $bla=$_GET['category'];
   $bla1= " SELECT * FROM project where id=$bla ";
      $result1= mysqli_query($db, $bla1);
                if(!$result1) {
                die("hehehe");
                             } 
   while($result2 = mysqli_fetch_array('result1')){ 
   echo $result2['project_name'] ;
        }
?>

whats wrong in this? I am getting this warning

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, string given in ...

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题