note 98151 added to function.mysql-insert-id

From: Date: Fri, 28 May 2010 12:05:55 +0000
Subject: note 98151 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-169685@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 199.20.44.128 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.php Edit -- https://master.php.net/note/edit/98151 Del: integrated -- https://master.php.net/note/delete/98151/integrated Del: useless -- https://master.php.net/note/delete/98151/useless Del: bad code -- https://master.php.net/note/delete/98151/bad+code Del: spam -- https://master.php.net/note/delete/98151/spam Del: non-english -- https://master.php.net/note/delete/98151/non-english Del: in docs -- https://master.php.net/note/delete/98151/in+docs Del: other reasons-- https://master.php.net/note/delete/98151 Reject -- https://master.php.net/note/reject/98151 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169685) next »