[phpMP-CVS] CVS: phpMP/core/dba mysql.php,1.9,1.10
Status: Pre-Alpha
Brought to you by:
heimidal
From: Cameron C. <nor...@us...> - 2003-09-16 01:05:25
|
Update of /cvsroot/phpmp/phpMP/core/dba In directory sc8-pr-cvs1:/tmp/cvs-serv18935 Modified Files: mysql.php Log Message: eh.. yeah new stuff to play with. Index: mysql.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/core/dba/mysql.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** mysql.php 15 Sep 2003 07:26:06 -0000 1.9 --- mysql.php 16 Sep 2003 01:05:21 -0000 1.10 *************** *** 22,25 **** --- 22,29 ---- */ + // + // some parts of this file based upon code in phpBB 2.0.6 + // + class sql_db { *************** *** 155,159 **** // // sql_fetch_rowset ! // function sql_fetch_rowset($db_query_id = 0) { --- 159,163 ---- // // sql_fetch_rowset ! // function sql_fetch_rowset($db_query_id = 0) { *************** *** 176,180 **** // // sql_num_rows - // probably needs editing... // function sql_num_rows($db_query_id = 0) --- 180,183 ---- *************** *** 233,236 **** --- 236,259 ---- { return true; + } + else + { + return false; + } + } + + // + // sql_num_fields + // + function sql_num_fields($db_query_id = 0) + { + if(! $db_query_id) + { + $db_query_id = $this->db_query_result; + } + + if(! $result = @mysql_num_fields($db_connect_id)) + { + return $return; } else |