Answers for "php mysql insert more then one statement an get last inseterd ids"

PHP
0

last_insert_id() php

<?php
// use mysql_insert_id():
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) { die('Impossible de se connecter : ' . mysql_error()); }
mysql_select_db('mydb');
mysql_query("INSERT INTO mytable (product) values ('something')");
printf("last inserted id is %dn", mysql_insert_id());
?>
Posted by: Guest on April-06-2021
0

php sqlite last insert id

public SQLite3::lastInsertRowID(): int
Posted by: Guest on October-28-2021

Code answers related to "php mysql insert more then one statement an get last inseterd ids"

Browse Popular Code Answers by Language