PHP and MYSQL
am 22.06.2007 15:22:46 von Leandro Martinez
Hello. I just instaled PHP and MySQL on IIS.
Then from any php file I try to conect to the mysql server and nothing
happends. I just get an empty page. All white. No data and no error!
This is the code
$link = mysql_connect('localhost', '[user]', '[pass]');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
Can anyone help me?
Thanks
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: PHP and MYSQL
am 22.06.2007 15:55:50 von Bill Bolte
Do you have error reporting turned off?
-----Original Message-----
From: Leandro Martinez [mailto:leandro@extranets.unsam.edu.ar]=20
Sent: Friday, June 22, 2007 8:23 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP and MYSQL
Hello. I just instaled PHP and MySQL on IIS.
Then from any php file I try to conect to the mysql server and nothing=20
happends. I just get an empty page. All white. No data and no error!
This is the code
$link =3D mysql_connect('localhost', '[user]', '[pass]');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
Can anyone help me?
Thanks=20
--=20
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
Re: PHP and MYSQL
am 22.06.2007 16:11:15 von Stut
Bill Bolte wrote:
> Do you have error reporting turned off?
And/or display_errors?
-Stut
--
http://stut.net/
> -----Original Message-----
> From: Leandro Martinez [mailto:leandro@extranets.unsam.edu.ar]
> Sent: Friday, June 22, 2007 8:23 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] PHP and MYSQL
>
> Hello. I just instaled PHP and MySQL on IIS.
> Then from any php file I try to conect to the mysql server and nothing
> happends. I just get an empty page. All white. No data and no error!
>
> This is the code
>
> $link = mysql_connect('localhost', '[user]', '[pass]');
> if (!$link) {
> die('Could not connect: ' . mysql_error());
> }
> echo 'Connected successfully';
> mysql_close($link);
>
>
> Can anyone help me?
>
> Thanks
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP and MYSQL
am 22.06.2007 16:12:19 von Leandro Martinez
Where is that?
On MySQL, on PHP.ini or on IIS?
""Bill Bolte"" escribió en el mensaje
news:013FC758865CF645976E313AEB6A709904DCC1C8@htmail.hightou chinc.com...
Do you have error reporting turned off?
-----Original Message-----
From: Leandro Martinez [mailto:leandro@extranets.unsam.edu.ar]
Sent: Friday, June 22, 2007 8:23 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP and MYSQL
Hello. I just instaled PHP and MySQL on IIS.
Then from any php file I try to conect to the mysql server and nothing
happends. I just get an empty page. All white. No data and no error!
This is the code
$link = mysql_connect('localhost', '[user]', '[pass]');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
Can anyone help me?
Thanks
--
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
RE: PHP and MYSQL
am 22.06.2007 16:24:35 von Bill Bolte
Php.ini, but you can override it in the page with: =
error_reporting(E_ALL);=20
-----Original Message-----
From: Leandro Martinez [mailto:leandro@extranets.unsam.edu.ar]=20
Sent: Friday, June 22, 2007 9:12 AM
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] PHP and MYSQL
Where is that?
On MySQL, on PHP.ini or on IIS?
""Bill Bolte"" escribi=F3 en el mensaje=20
news:013FC758865CF645976E313AEB6A709904DCC1C8@htmail.hightou chinc.com...
Do you have error reporting turned off?
-----Original Message-----
From: Leandro Martinez [mailto:leandro@extranets.unsam.edu.ar]
Sent: Friday, June 22, 2007 8:23 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] PHP and MYSQL
Hello. I just instaled PHP and MySQL on IIS.
Then from any php file I try to conect to the mysql server and nothing
happends. I just get an empty page. All white. No data and no error!
This is the code
$link =3D mysql_connect('localhost', '[user]', '[pass]');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
Can anyone help me?
Thanks
--=20
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php=20
--=20
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