/[libdata]/branches/pear-db/include/xx_mysql.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/pear-db/include/xx_mysql.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/xx_mysql.php revision 39 by dpavlin, Thu Mar 4 21:42:17 2004 UTC branches/pear-db/include/xx_mysql.php revision 82 by dpavlin, Thu Mar 18 23:15:39 2004 UTC
# Line 10  function xx_errno() { Line 10  function xx_errno() {
10          return mysql_errno();          return mysql_errno();
11  }  }
12    
13  function xx_fetch_array ($rs) {  define("xx_ASSOC", mysql_ASSOC);
14          return mysql_fetch_array($rs);  
15    function xx_fetch_array ($rs, $t = 0) {
16            if ($t == 0) {
17                    $ret = mysql_fetch_array($rs);
18            } else {
19                    $ret = mysql_fetch_array($rs, $t);
20            }
21            print "result:";
22            var_dump($ret);
23            return($ret);
24  }  }
25    
26    
# Line 24  function xx_num_rows($rs) { Line 33  function xx_num_rows($rs) {
33  }  }
34    
35  function xx_query($sql, $con) {  function xx_query($sql, $con) {
36          return mysql_query($sql, $con);          $ret = mysql_query($sql, $con);
37            if (! $ret) {
38                    print "Error in SQL: <pre>$sql</pre>";
39            }
40            return $ret;
41  }  }
42    
43  function xx_select_db ( $db_nam, $con ) {  function xx_select_db ( $db_nam, $con ) {

Legend:
Removed from v.39  
changed lines
  Added in v.82

  ViewVC Help
Powered by ViewVC 1.1.26