--- trunk/db_connect.php 2004/03/04 21:18:33 31
+++ trunk/db_connect.php 2004/03/04 22:43:50 42
@@ -16,9 +16,9 @@
/****************************************************************/
/* establish a connection to the database or bailout */
- $con = mysql_connect ( $db_srv, $db_usr, $db_pwd )
+ $con = xx_connect ( $db_srv, $db_usr, $db_pwd )
or die ( "ERROR: Could not connect to database server!" );
- $result = mysql_select_db ( $db_nam, $con )
+ $result = xx_select_db ( $db_nam, $con )
or die ( "ERROR: Could not connect to database!" );
/****************************************************************/
@@ -29,7 +29,7 @@
/* return an error message from a failed sql query */
function sql_err ( $p_sql ) {
printf ( "ERROR: Query failed.
%s
%s: %s
\n",
- $p_sql, mysql_errno(), mysql_error() );
+ $p_sql, xx_errno(), xx_error() );
return 1;
}