Hi all...
I have search at this site to find the problem similar to mine but got no one....
I am new in PHP .....I want to connect to MySql , so I made a script and save the file in web folder (C:/web):
<?php
mysql_connect("localhost","root","") or
die ("could not connect to database");
mysql_select_db("guessbook") or
die ("could not select database");
?>
but it didn't connect, the message is :
Parse error: parse error, unexpected T_ECHO in C:\Web\connectdb.php on line 18
my question :
1. Should I type the password ?? but althought I type the password it still not connected
2. is there something wrong with script , location of file (C:/web) or configuration setting
thanks