When I try to connect from my php-script to my mysql server on localhost it will not work. This is the test code I am using while trying to get it to work:
<?php
$user = "user";
$password = "password";
$host = "localhost";
$db = "db";
echo first;
$conn = mysql_connect($host,$user,$password) or die("Problems connecting: " . mysql_error());
echo second;
$db = mysql_select_db($conn);
mysql_close($conn);
?>
After the mysql_connect call nothing will be displayed and I get no error message whatsoever. I have set all the right privileges in the mysql database. I have looked through the php.ini file and found no fault in there. I have googled alot on the subject, but I haven't found anything of help yet.
On my real page, which I will use it on, the css on the page gets screwed up as well.
I am using fedora core 11.
I hope someone out there can help me out.