Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End mysqli_fetch_assoc() expects parameter 1 to be mysqli_result error Re: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result error

#137365
LaurelBrittany
Participant

Most of what you are saying is over my head. I am in a beginner PHP course. That’s why I said it came from my school. I do not know how to test the code besides running it in the browser and seeing what errors I get. If there are any tools you know about to test the code that would be helpful. This is the error I get: Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘where id = ”’ at line 1

I do not know what a control structure is. I don’t know what mean by checking if the query is successful before trying to use the results. I do not know how to write my own PHP. I need help writing something that will make the form to edit the product table.