mySQL doesn't work with php
I'm trying to learn using mySQL in PHP. The problem is I can't get connection with mySQL server. mySQL Server works, queries works, but not from php. For example such script:
<?php
$connection_id = mysql_connect("localhost","phpuser","phppass");
if(mysql_select_db("adresy",$connection_id))
echo "Connection set.";
else die("Connection not set");
?>
show the "Connection not set" screen in browser.
The apache is 1.3.31, PHP 4.3.10.
Of course PHP works excelent without using mySQL.
Help, anyone knows what's the problem?
Yo
__________________
Yo
|