note 62833 deleted from function.mysql-affected-rows by betz
| From: | betz@php.net | Date: | Fri, 10 Mar 2006 16:57:27 +0000 |
| Subject: | note 62833 deleted from function.mysql-affected-rows by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-105224@lists.php.net to get a copy of this message | ||
Note Submitter: akrymski at gmail dot com
----
Avoid having to remember to use mysql_affected_rows and mysql_insert_id and mysql_num_rows with a
simple query function that returns the numbers of rows if its a SELECT, affected rows if its an
UPDATE/DELETE, and insert id if its an INSERT!!! Its only a few lines long. I found it here: http://www.morewhite.com/sdba/