MySQL Forums
Forum List  »  PHP

Re: Mysql insert doesn't working but no notification appears
Posted by: Barry Galbraith
Date: July 13, 2018 11:46PM

Not only does your second example do error checking (as you should) it also executes the query, which the first example doesn't do.

f ($conn->query($sql) === TRUE) {

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
Re: Mysql insert doesn't working but no notification appears
July 13, 2018 11:46PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.