I have a very simple query that works in both phpMyAdmin and in the PHP page I'm using it on, to update a table based on a simple HTML form:
UPDATE customers SET customer_name='$name', customer_email='$email', customer_tel='$tel' WHERE customer_id = $id LIMIT 1
This updates the table perfectly - I can see that in phpMyAdmin, and I have an if
statement checking the number of affected rows that reports no problems, but I still get:
mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given
Suggesting that the query is incorrect. What gives?