note 77528 added to ref.mysql

From: Date: Sun, 02 Sep 2007 10:19:01 +0000
Subject: note 77528 added to ref.mysql
Groups: php.notes 
Request: Send a blank email to php-notes+get-130090@lists.php.net to get a copy of this message
On 11-Apr-2007 admin at mihalism dot com posted an 'easy to use MySql-class'. In my opinion there is a bug in the get_affected_rows-function. It refers to query-id, but it should refer to connect-id instead. The corrected function should be: function get_affected_rows($connect_id = ""){ if($connect_id == NULL){ $return = mysql_affected_rows($this->connect_id); }else{ $return = mysql_affected_rows($connect_id); } if(!$return){ $this->error(); }else{ return $return; } } ---- Server IP: 83.137.20.107 Probable Submitter: 145.99.192.28 ---- Manual Page -- http://www.php.net/manual/en/ref.mysql.php Edit -- https://master.php.net/note/edit/77528 Del: integrated -- https://master.php.net/note/delete/77528/integrated Del: useless -- https://master.php.net/note/delete/77528/useless Del: bad code -- https://master.php.net/note/delete/77528/bad+code Del: spam -- https://master.php.net/note/delete/77528/spam Del: non-english -- https://master.php.net/note/delete/77528/non-english Del: in docs -- https://master.php.net/note/delete/77528/in+docs Del: other reasons-- https://master.php.net/note/delete/77528 Reject -- https://master.php.net/note/reject/77528 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130090) next »