Is Mysql configured in PHP to be usable? Just having both installed isn't enough, there is configuration to 'enable' mysql. Try this link: http://www.php.net/manual/en/ref.mysql.php Based on the fact that it is saying mysql_connect() is undefined, I'd say that mysql functions aren't enabled/configured. Aaron ----- Original Message ---- From: Nhan <le.nhan@xxxxxxxxxx> To: php-db@xxxxxxxxxxxxx Sent: Friday, November 2, 2007 5:04:03 AM Subject: Re: PHP cannot access mySQL OK, now I have the errormessage: Fatal error: Call to undefined function mysql_connect() Why? "Chris" <dmagick@xxxxxxxxx> wrote in message news:472A62EE.4070204@xxxxxxxxxxxx > Nhan wrote: >> Hi, >> I have IIS 5.1 with PHP 5 and MySQL 4.1 >> With a client tool (such as MySQL Front) I can access MySQL. But my PHP >> page cannot, with the same username and passord. >> Why? What can I do? > > What is the error message? > > -- > Postgresql & php tutorials > http://www.designmagick.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php