hell everyone, iam going thru the pains of learning php, mysql and have zero experiance :rolleyes:
so i cant connect to mysql ,
/ Open the mysql connection
$dbc = mysql_connect("$sql_host", "$sql_user", "$sql_password");
if(!$dbc) {
print_error("Could not connect to mysql: " . mysql_error());
}
if (!mysql_select_db($sql_dsname)) {
print_error("Could not select the database: " . mysql_error());
}
this is the script i am using but no matter what i do it will not work. this is the error i get, it says, fatal error: call to undefined function mysql_connect()
so i tried to reconfigure a little here and there but didnt really understand what im supposed to do to get php and mysql together.
i am currently running php5.1 and mysql 5.0.
so no matter what i do to the script i get the same error so i beleive that php doesnt know where mysql is or what it is. is this a bad install or a config prob?
thanks for the help !!!