jakebur01 Posted January 28, 2008 Share Posted January 28, 2008 I am getting this error: PHP Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result @ $db = mysqli_connect('localhost', '0', '0', '0'); if (mysqli_connect_errno()) { echo 'Error: Could not connect to database. Please try again later.'; exit; } $result=mysqli_query($db, "select catname ". "from itemclass ". "where catid = $catid"); while ($myrow=mysqli_fetch_array($result)) { echo$myrow["catname"]; } Link to comment https://forums.phpfreaks.com/topic/88219-solved-mysqli_fetch_array-expects-parameter-1-to-be-mysqli_result/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.