Re: Apache, PHP4, MySQL installation
| From: | Jeroen | Date: | Sat, 06 Nov 2004 07:08:44 +0000 |
| Subject: | Re: Apache, PHP4, MySQL installation | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24917@lists.php.net to get a copy of this message | ||
Well,
I've been brave enough to upgrade to PHP5.
The error message disappeared.
But now nothings happens at all.
The mysql_connect(...) function is executed byt never returns.
Right! Whats happening here?
I found this article describing my first problem:
http://dev.mysql.com/doc/mysql/en/Old_client.html
Regards,
Jeroen
"Rafael Soares" <design_animation@yahoo.com.br> wrote in message
news:php.windows-24914@news.php.net...
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@lycos.nl]
Enviada em: sexta-feira, 5 de novembro de 2004 18:51
Para: php-windows@lists.php.net
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"" <agarrammone@afip.gov.ar> wrote in message
news:009101c4c364$3b3dfa80$aff7150a@afip.gov.ar...
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@lycos.nl>
To: <php-windows@lists.php.net>
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