MySQL Forums
Forum List  »  PHP

My TRUNCATE statements DO NOT WORK.
Posted by: Gordon White
Date: March 21, 2016 06:01AM

Ii have the following code that to me looks correct.
But it doesn't work.

<?PHP
include "config.php";

$sql = "TRUNCATE TABLE data1";
$sql.= "TRUNCATE TABLE data2";
$sql.= "TRUNCATE TABLE data3";
$sql.= "TRUNCATE TABLE data4";
$$result = mysqli_query($sql,$conn);

There's lots of stuff following but not necessary.

What is wrong?

Options: ReplyQuote


Subject
Written By
Posted
My TRUNCATE statements DO NOT WORK.
March 21, 2016 06:01AM


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.