hi, i wrote a simple 3-lined function in an included file as such:
function db_connect($db_name){
$db=mysql_pconnect("localhost","username","password"
;
mysql_select_db($db_name);
return $db;
}
this functions has worked for a couple weeks now. but just in the last few minutes after struggling with some unrelated (?) sessions stuff now i am getting errors like "mysql_select_db(): 1 is not a valid MySQL-link resource". ive never seen this error nor do i have a clue what it means, could someone pls help?!
function db_connect($db_name){
$db=mysql_pconnect("localhost","username","password"
mysql_select_db($db_name);
return $db;
}
this functions has worked for a couple weeks now. but just in the last few minutes after struggling with some unrelated (?) sessions stuff now i am getting errors like "mysql_select_db(): 1 is not a valid MySQL-link resource". ive never seen this error nor do i have a clue what it means, could someone pls help?!