1 |
dpavlin |
39 |
<?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 |
|
|
?> |