|
Posted by Henri on 10/14/07 22:25
On Sat, 13 Oct 2007 21:00:42 +0000, Evan Jou wrote:
> 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","root","password")
> or die("Could not connect to MySQL server!);
> @mysql_select_db("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_mysql.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
your die messages lack the closing quotes.
Navigation:
[Reply to this message]
|