--- branches/pear-db/include/xx_mysql.php 2004/03/06 18:55:27 60 +++ branches/pear-db/include/xx_mysql.php 2004/03/18 22:20:55 77 @@ -10,8 +10,17 @@ return mysql_errno(); } -function xx_fetch_array ($rs) { - return mysql_fetch_array($rs); +define("xx_ASSOC", mysql_ASSOC); + +function xx_fetch_array ($rs, $t = 0) { + if ($t == 0) { + $ret = mysql_fetch_array($rs); + } else { + $ret = mysql_fetch_array($rs, $t); + } + print "result:"; + var_dump($ret); + return($ret); }