note 62834 added to function.mysql-query

From: Date: Fri, 10 Mar 2006 14:09:32 +0000
Subject: note 62834 added to function.mysql-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-105201@lists.php.net to get a copy of this message
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/ ---- Server IP: 85.116.0.130 Probable Submitter: 86.144.88.185 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-query.php Edit -- http://master.php.net/note/edit/62834 Del: integrated -- http://master.php.net/note/delete/62834/integrated Del: useless -- http://master.php.net/note/delete/62834/useless Del: bad code -- http://master.php.net/note/delete/62834/bad+code Del: spam -- http://master.php.net/note/delete/62834/spam Del: non-english -- http://master.php.net/note/delete/62834/non-english Del: in docs -- http://master.php.net/note/delete/62834/in+docs Del: other reasons-- http://master.php.net/note/delete/62834 Reject -- http://master.php.net/note/reject/62834 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105201) next »