$SQL = "SELECT AUTO_INCREMENT nomerurut FROM information_schema.tables WHERE table_name = 'imagegambar'";
$QUERY = mysqli_query($KONN,$SQL);
$rows = mysqli_fetch_array($QUERY);
$tampungnomer = $rows["nomerurut"];
return $tampungnomer;
Source:
https://stackoverflow.com/questions/6761403/how-to-get-the-next-auto-increment-id-in-mysql
$QUERY = mysqli_query($KONN,$SQL);
$rows = mysqli_fetch_array($QUERY);
$tampungnomer = $rows["nomerurut"];
return $tampungnomer;
Source:
https://stackoverflow.com/questions/6761403/how-to-get-the-next-auto-increment-id-in-mysql