Hi there,
I have a simple question for you experts here that I've installed
Apache, PHP and MySQL on my Windows machine and set up a test
script(test.php ) like what is listed in a book. It's like
<?php
@mysql_connect( "localhost","ro ot","password ")
or die("Could not connect to MySQL server!);
@mysql_select_d b("mysql")
or die("Could not select database!);
echo "You're connected to a MySQL database!";
mysql_close();
?>
After I opened the browser and selected the test.php, nothing happened.
I look in the php.ini file and uncomment the line
extension=php_m ysql.dll
and change extension_dir = ".\" to extension_dir = "c:\php\ext \"
I also make sure libmysql.dll resides on the Windows system path as
told in the book. Then I restart the computer and open the browser again and
select test.php. Still nothing happens. What did I miss? :(
Thank you in advance for your help.
Evan Jou
I have a simple question for you experts here that I've installed
Apache, PHP and MySQL on my Windows machine and set up a test
script(test.php ) like what is listed in a book. It's like
<?php
@mysql_connect( "localhost","ro ot","password ")
or die("Could not connect to MySQL server!);
@mysql_select_d b("mysql")
or die("Could not select database!);
echo "You're connected to a MySQL database!";
mysql_close();
?>
After I opened the browser and selected the test.php, nothing happened.
I look in the php.ini file and uncomment the line
extension=php_m ysql.dll
and change extension_dir = ".\" to extension_dir = "c:\php\ext \"
I also make sure libmysql.dll resides on the Windows system path as
told in the book. Then I restart the computer and open the browser again and
select test.php. Still nothing happens. What did I miss? :(
Thank you in advance for your help.
Evan Jou
Comment