note 98151 rejected from function.mysql-insert-id by thiago

From: Date: Fri, 28 May 2010 15:01:35 +0000
Subject: note 98151 rejected from function.mysql-insert-id by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-169689@lists.php.net to get a copy of this message
Note Submitter: jijo at jijo dot in ---- I'm new to php. And I'll be happy to be proved wrong. But none of these solutions work if I need to return all the ids just been created by my multi row insert statement. I need to send back the client the AI ids of rows that I just created so that they could delete or update using those ids. So, last_insert_id, mysqli->insert_id won't help me in anyway unless i insert one rwo at a time Which is a shame when you have the ability to add multiple rows in one statement.

« previous php.notes (#169689) next »