After 5 minutes, no action, no error message, no chg to table.
I'm running PHP version 5.4.4
- Code: Select all
<?php
$db = new mysqli("localhost","root","cookie","homedb");
if($db->query("ALTER TABLE calculator AUTO_INCREMENT = 1") == false) {
$db->rollback();
throw new Exception("autoincrement reset failed: ".$db->error);
}
$db->commit();
?>