Try removing the "@" before "mysql_connect(...);" or adding "mysql_error()" as a parameter of "exit()" and tell us the error.
Rafael Soares - AgênciaM Fone: +55 11 4616-1394 -----Mensagem original----- De: Jeroen [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 5 de novembro de 2004 18:51 Para: [EMAIL PROTECTED] Assunto: Re: [PHP-WIN] Apache, PHP4, MySQL installation Hello Alex, No errors, just not the results I want. I run the following script: <? echo "DB connection testing !"; $mySQL = @mysql_connect("localhost", "user", "password") or exit(); echo "DB selecting !"; if (!mysql_select_db("my")) exit(); echo "DB connection okay !"; ?> I only see the string DB connection testing. Regards, Jeroen ""Alejandro césar garrammone"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I don't know what problem could you have...please put some code, or error. You can access to the database using the console of mysql? Best Regards, Alex ----- Original Message ----- From: "Jeroen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 05, 2004 2:52 PM Subject: [PHP-WIN] Apache, PHP4, MySQL installation > Hello, > > I installed Apache 2.0.52 en PHP4.3.9 on a Windows XP SP2 machine. > Everything runs fine. > I also installed MySQL 4.1 and it also runs fine. > > However when I try to connect to a exisiting database from within a PHP > script it fails. > > I followed several installation tutorials on the net but nu success sofar. > > Any ideas? > > Regards, > > Jeroen > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php