hi all
i'm using the sitepoint book and installed php on iis
but i'm having problems with this line
promptname is definitely localhost,PHP Code:$dbConn = @mysql_connect('localhost', 'root', 'mypassword');
if (!$dbConn) {
echo('<p>Unable to connect to the database server at this time.</p>');
exit();
}
root, and password are definitely right,
i can connect in the command prompt and edit and stuff
but i always get the error message
i've tried removing the @ symbol, but i still get my own message
i installed php and mysql exactly the same as in the book
in different directories but i don't think that would be the problem
anyone know what could be wrong
i can do other php, just can't connect to the mysql server
thanks





Bookmarks