UPDATES VIA   RSS  |  Email Get updates via feedburner Get updates via twitter
Home

Archive for June 23rd, 2009

PHP Error: Call to a member function fetch_assoc() on a non-object in

Posted on 23. Jun, 2009 by .

4

If you get this error: Call to a member function fetch_assoc() on a non-object in … , it means that you have an error in your mysql syntax. Supposing that $mysqli is your database connection object, put echo $mysqli->error; just before the line you’re getting the error on. $mysqli=new mysqli(HOST,USER,PASS,DB); $mQuery=$mysqli->query(‘select `data` from `this_table` where [...]

Continue Reading