MySQL Forums
Forum List  »  PHP

Re: My TRUNCATE statements DO NOT WORK.
Posted by: Peter Brawley
Date: March 22, 2016 11:15AM

> die('Error: ' . mysqli_error());
> print "data1 Failed";

die() obviously precludes the next line executing.

Check the PHP manual for mysqli_error() syntax. It requires a connection param.

And check the PHP manual for mysqli_query() syntax, your params are in the wrong order.

Options: ReplyQuote


Subject
Written By
Posted
Re: My TRUNCATE statements DO NOT WORK.
March 22, 2016 11:15AM


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.