[phpMP-CVS] CVS: phpMP/core/dba mysql.php,1.4,1.5
Status: Pre-Alpha
Brought to you by:
heimidal
From: Cameron C. <nor...@us...> - 2003-09-14 08:11:58
|
Update of /cvsroot/phpmp/phpMP/core/dba In directory sc8-pr-cvs1:/tmp/cvs-serv25065 Modified Files: mysql.php Log Message: uh... its 4:11am need I say more? Index: mysql.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/core/dba/mysql.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** mysql.php 14 Sep 2003 07:41:48 -0000 1.4 --- mysql.php 14 Sep 2003 08:11:55 -0000 1.5 *************** *** 143,147 **** } ! if( $this->db_row[$db_query_id] = @mysql_fetch_array($query_id)) { return $this->db_row[$db_query_id]; --- 143,147 ---- } ! if( $this->db_row[$db_query_id] = @mysql_fetch_array($db_query_id)) { return $this->db_row[$db_query_id]; *************** *** 151,154 **** --- 151,175 ---- return false; } + } + + // + // sql_fetch_rowset + // + function sql_fetch_rowset($db_query_id = 0) + { + if(! $db_query_id) + { + $db_query_id = $this->db_query_result; + } + + unset($this->db_row[$this->db_query_result]); + unset($this->db_rowset[$this->db_query_result]); + + while($this->db_rowset[$this->db_query_result] = @mysql_fetch_array($db_query_id)) + { + $rowset[] = $this->db_rowset[$db_query_id]; + } + + return $rowset; } } // End of sql_db |