MySQL Forums
Forum List  »  PHP

Re: SQL error in inserting table values from PHP using localhost
Posted by: Peter Brawley
Date: March 14, 2021 08:58PM

As you perhaps have now learnt, uninstalling and reinstalling, then repeating what you were doing before, will very likely produce the unsatisfactory result you had before.

Every php call to MySQL needs error handling...that's how you find your bugs.

For example, minimally ...

$stmt = mysqli_stmt_init($conn);
if( $conn->error ) exit( $conn->error);

..

Options: ReplyQuote


Subject
Written By
Posted
Re: SQL error in inserting table values from PHP using localhost
March 14, 2021 08:58PM


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.