mysql - warning mysql_fetch_assoc () expects parameter 1 to be mysqli_result boolean given in -


require('includes/database.php'); $db = new database(); echo "<table border = 1 width=100%> <tr> <th> id </th> <th> login id </th> </tr>";   $result = $db->select('test','*'); foreach($result $row) {         /*$id = $row['sid'];         $fname = $row[first_name];         $lname = $row[last_name];         $pwd = $row[password];         $email= $row[email];*/                        echo "<tr>";         echo "<td align='center'>". $row['id'] ."</td>";         echo "<td align='center'>". $row['name'] ."</td>";         echo "</tr><br>"; } 

the above code giving me warning "warning mysql_fetch_assoc () expects parameter 1 mysqli_result boolean given in" if replace table "system_user" in select statement works fine me. please advice!


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -