S
sin f
Guest
Wheneve I try to acces the webpage all I get is a blank page with nothing in it.
I removed the ; behind the
extension=php_mysql.dll
and
extension=php_mysqli.dll
in php.ini file.
also in the php info web page mysql.allow_persistent is On.
By the way I'm using PHP5 and MySQL 5 with Apache 2.2
Your Open QuestionShow me another »
I am just getting started with PHP and MySQL. But I can't connect to MySQL.?
Wheneve I try to acces the webpage all I get is a blank page with nothing in it.
I removed the ; behind the
extension=php_mysql.dll
and
extension=php_mysqli.dll
in php.ini file.
also in the php info web page mysql.allow_persistent is On.
I also copied
By the way I'm using PHP5 and MySQL 5 with Apache 2.2 on windows vista.
MySQL is working properly i can create databases in it and do other stuff. I try to connect by using this code:
<?php
$link = mysql_connect('localhost', 'MYUSERNAME', 'MYPASSWORD');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
I also hav copied libmySQL.dll to c:\windows\system32
I copied libmySQL.dll to c:winows\system 32
I removed the ; behind the
extension=php_mysql.dll
and
extension=php_mysqli.dll
in php.ini file.
also in the php info web page mysql.allow_persistent is On.
By the way I'm using PHP5 and MySQL 5 with Apache 2.2
Your Open QuestionShow me another »
I am just getting started with PHP and MySQL. But I can't connect to MySQL.?
Wheneve I try to acces the webpage all I get is a blank page with nothing in it.
I removed the ; behind the
extension=php_mysql.dll
and
extension=php_mysqli.dll
in php.ini file.
also in the php info web page mysql.allow_persistent is On.
I also copied
By the way I'm using PHP5 and MySQL 5 with Apache 2.2 on windows vista.
MySQL is working properly i can create databases in it and do other stuff. I try to connect by using this code:
<?php
$link = mysql_connect('localhost', 'MYUSERNAME', 'MYPASSWORD');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
I also hav copied libmySQL.dll to c:\windows\system32
I copied libmySQL.dll to c:winows\system 32
