I am having touble simply connecting to the database. I've already installed both php and mysql, and I made sure php knows about mysql (this isn't a "call to undefined function..." mistake). The code looks something like:
$connect_result = mysql_connect($host, $user, $password);
if(!$connect_result)
{
echo "error";
}
else
{
echo "no error";
}
The script always returns error, and I've made sure all the variables that are going in work. Does anyone have any suggestion as to what could be causing this problem?