Hi H.L. !!
Thanks for the tips.. but I'm still having the problem... I get the error notice at the first line of the function dbconnect()... See part of the code below...
<?
/ Variables for the DataBase Connection /
global $db_host, $db_user, $db_pass, $dbase;
$db_host = "localhost" ;
$db_user = "user" ;
$db_pass = "pass" ;
$dbase = "base01" ;
/ System Functions /
function dbconnect() {
mysql_connect($db_host,$db_user,$db_pass)
or die(sql_error());
mysql_select_db($dbase)
or die(sql_error());
}
function sql_error() {
global $erro_num, $erro_msg;
if(empty($erro_msg)) {
$erro_num = mysql_errno();
$erro_msg = mysql_error();
}
Return "$erro_num: $erro_msg";
}
?>