I\'m trying to return the inserted id from a mysql INSERT query. Each time I run the function I get 0 as the result. Can someone please explain at what point I can retrieve the value because although
I am using adodb for PHP library. For fetching the id at which the record is inserted I use this function \"$db->Insert_ID()\"
How would I get the last inserted ID using a multirow insert? Here is my code: $sql=\'INSERT 开发者_如何学编程INTO t (col1, col2, col3) VALUES (1, 2, 3), (4, 5, 6), (7, 8, 9)\'; // example
I\'m trying to some something like that: INSERT INTO dir_pictures SET filename=CONCAT(picture_id,\'-test\');