Do you want the next id, or the id of the row that you are currently inserting? That is, should the id at the end of the payment code be the id of the row in which the payment code is stored?
The way how to you get the last value of auto increament:
$SQL = "SELECT AUTO_INCREMENT sequentialnumber FROM information_schema.tables WHERE table_name = 'imagegambar'";
$QUERY = mysqli_query($KONN,$SQL);
$rows = mysqli_fetch_array($QUERY);
$tempnumber = $rows["sequentialnumber"];
return $tempnumber;
Source:
https://stackoverflow.com/questions/6761403/how-to-get-the-next-auto-increment-id-in-mysql
Cinderella
Cinderella adalah kisah seorang putri cantik yang dikurung oleh ibu tirinya agar tidak bertemu dengan orang lain hingga menjadi istri seora...
-
Website ini didukung sepenuhnya oleh Firefox, Google, Blogger, Facebook, Kaskus dan Tokobagus. Untuk itu ada hal-hal yang bisa bagikan dan d...
-
Mudah sekali menginstall driver printer scanner epson L210 di linux ubuntu 14.04 LTS dengan ketentuan Para Pembaca Budiman harus memiliki k...