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"]; } Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.