MySQL Forums
Forum List  »  PHP

Re: trying to insert values into my table for first time
Posted by: Peter Brawley
Date: March 19, 2021 02:41PM

> I don't know what type of error handling those lines need

For example execute() returns T or F, you need to track which.

One way: https://www.php.net/manual/en/function.mysqli-report.php

When you can't figure out what's going wrong with your generated sql, have your script echo the sql it's generated, and play with it in the mysql client program.

Options: ReplyQuote




Sorry, only registered users may post in this forum.

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.