note 88062 added to class.mysqli-result

From: Date: Thu, 08 Jan 2009 10:47:20 +0000
Subject: note 88062 added to class.mysqli-result
Groups: php.notes 
Request: Send a blank email to php-notes+get-148941@lists.php.net to get a copy of this message
Extending the MySQLi_Result <?php class Database_MySQLi extends MySQLi { public function query($query) { $this->real_query($query); return new Database_MySQLi_Result($this); } } class Database_MySQLi_Result extends MySQLi_Result { public function fetch() { return $this->fetch_assoc(); } public function fetchAll() { $rows = array(); while($row = $this->fetch()) { $rows[] = $row; } return $rows; } } ?> ---- Server IP: 212.124.37.9 Probable Submitter: 217.6.61.106 ---- Manual Page -- http://www.php.net/manual/en/class.mysqli-result.php Edit -- https://master.php.net/note/edit/88062 Del: integrated -- https://master.php.net/note/delete/88062/integrated Del: useless -- https://master.php.net/note/delete/88062/useless Del: bad code -- https://master.php.net/note/delete/88062/bad+code Del: spam -- https://master.php.net/note/delete/88062/spam Del: non-english -- https://master.php.net/note/delete/88062/non-english Del: in docs -- https://master.php.net/note/delete/88062/in+docs Del: other reasons-- https://master.php.net/note/delete/88062 Reject -- https://master.php.net/note/reject/88062 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148941) next »