RES: Apache, PHP4, MySQL installation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:jschoot@xxxxxxxx] 
Enviada em: sexta-feira, 5 de novembro de 2004 18:51
Para: php-windows@xxxxxxxxxxxxx
Assunto: Re:  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"" <agarrammone@xxxxxxxxxxx> wrote in message 
news:009101c4c364$3b3dfa80$aff7150a@xxxxxxxxxxxxxx
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" <jschoot@xxxxxxxx>
To: <php-windows@xxxxxxxxxxxxx>
Sent: Friday, November 05, 2004 2:52 PM
Subject:  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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux