[phpMP-CVS] CVS: phpMP/core/dba mysql.php,1.8,1.9
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2003-09-15 07:26:12
|
Update of /cvsroot/phpmp/phpMP/core/dba In directory sc8-pr-cvs1:/tmp/cvs-serv16331/core/dba Modified Files: mysql.php Log Message: Template fix. Index: mysql.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/core/dba/mysql.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** mysql.php 15 Sep 2003 06:53:55 -0000 1.8 --- mysql.php 15 Sep 2003 07:26:06 -0000 1.9 *************** *** 173,177 **** --- 173,198 ---- return $rowset; } + + // + // sql_num_rows + // probably needs editing... + // + function sql_num_rows($db_query_id = 0) + { + if(! $db_query_id) + { + $db_query_id = $this->db_query_result; + } + if( $this->db_row[$db_query_id] = @mysql_num_rows($db_query_id)) + { + return $this->db_row[$db_query_id]; + } + else + { + return false; + } + } + // // sql_insert_id |