I am using php and mysqli to be able to select and insert data into the database. The only problem I am having is that I am getting a parse error. This is when I am trying to do a fetch for the $stmt and then count the number of rows using the $numrows variable.
Can somebody help me and inform me what I need to do to remove the parse error?
I have pasted my code in this fiddle
This error comes when you try to use if … else without proper nesting or missing one .
In your code at line 121 you called else which have no if.
close your if before this else.