Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


mysqli truncate

  • Please log in to reply
No replies to this topic

#1 12Strings


  • Members
  • 41 posts
  • Local time:09:25 PM

Posted 26 September 2014 - 07:52 PM

Hi, I'm trying to clear a database table of data and reset autoindex to 1

<!DOCTYPE html><html><head><meta 
charset=utf-8><title>database table remove 
//    error_reporting(0);error_reporting(E_ALL ^ 
//============== check connection    
if(mysqli_errno($con))    { echo "Can't Connect to 
testtbl:".mysqli_connect_error(); }    
else    { echo "connected to testtbl</br>"; 
if(isset($_POST['total'])) mysqli_query($con,"TRUNCATE TABLE testtbl 
set id=1"); mysqli_close($con); ?>

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users