Re: MySQL question

From: Date: Tue, 04 Jul 2000 12:40:38 +0000
Subject: Re: MySQL question
Groups: php.general 
Request: Send a blank email to php-general+get-4733@lists.php.net to get a copy of this message
Hi You're right: mysql_insert_id() doesn't work with updates. When you do a db update, I guess you will have one or more update criteria (update.... where ....). You can apply the same criteria to a query (select... where) and you will get the entries that will be or have been affected. If you don't set any criteria you can be sure that every table row has been affected by your update query. HTH --Steff Looking PHP manual I've noticed that there is no function to determine id from update operation. After insert operation you can get id using mysql_insert_id(), but what about update?? So my question is how get id from update operation? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#4733) next »