MySQL Forums
Forum List  »  Newbie

Re: INSERT INTO NULLABLE FIELDS THROWING ERRORS WITH NULL VALUES
Posted by: Peter Brawley
Date: September 16, 2014 10:51AM

If $tax is null, you need to insert $tax, not '$tax'.

If that's not the problem, add this to the script ...

echo $query;

then inspect & fiddle till the errors go away, then backfill your findings into the php script.

Options: ReplyQuote




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.