it should be mysql_connect('localhost',$user,$password);
you can add in the following lines below that to see if it connected or what is the error (database permission etc etc)
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
php connect mysql~
Jan 28 2006, 12:45 PM
Quote
0.0130sec
1.29
6 queries
GZIP Disabled