/[libdata]/trunk/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

Contents of /trunk/include/xx_mysql.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 73 - (show annotations)
Thu Mar 18 21:27:37 2004 UTC (17 years, 7 months ago) by dpavlin
File size: 687 byte(s)
sync trunk to HEAD of pear-db (without changes specific to PEAR which will be dropped)

1 <?php
2
3 # convert calls to xx_ SQL to mysql
4
5 function xx_connect ( $db_srv, $db_usr, $db_pwd ) {
6 return mysql_connect ( $db_srv, $db_usr, $db_pwd );
7 }
8
9 function xx_errno() {
10 return mysql_errno();
11 }
12
13 function xx_fetch_array ($rs) {
14 return mysql_fetch_array($rs);
15 }
16
17
18 function xx_insert_id($con) {
19 return mysql_insert_id($con);
20 }
21
22 function xx_num_rows($rs) {
23 return mysql_num_rows($rs);
24 }
25
26 function xx_query($sql, $con) {
27 return mysql_query($sql, $con);
28 }
29
30 function xx_select_db ( $db_nam, $con ) {
31 return mysql_select_db ( $db_nam, $con );
32 }
33
34 function xx_data_seek($rs, $element_nr) {
35 return mysql_data_seek($rs, $element_nr);
36 }
37
38 function xx_error() {
39 return mysql_error();
40 }
41
42 ?>

  ViewVC Help
Powered by ViewVC 1.1.26