MySQL Forums
Forum List  »  PHP

Truncate does not work
Posted by: Gordon White
Date: March 22, 2016 12:57AM

I have the following code that does not work.
I followed all of the examples I found and still nothing.

<?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);

All of my INSERT statements following these do work.

I know it may be simple for you guys but I'm stuck.

Thanks

Options: ReplyQuote


Subject
Written By
Posted
Truncate does not work
March 22, 2016 12:57AM
March 23, 2016 06:24AM
April 25, 2016 09:34AM


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.