add a reset-counter file to reset the Primary key

master
GhadaA98 2023-06-05 17:07:04 +02:00
parent 94506f14c9
commit 108fb5041e
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?php
$db_link = mysqli_connect('localhost', 'web_b-3', 'een7Ao6s', 'bibliothek_candle', '3306');
function runSQL($sql){
global $db_link;
$db_res = mysqli_query($db_link, $sql);
if(!$db_res){
header("Location: 404.html");
exit;
}
return $db_res;
}
runSQL("ALTER TABLE `benutzer` AUTO_INCREMENT = 1");
runSQL("ALTER TABLE `adresse` AUTO_INCREMENT = 1");
?>