|
Hai all,
Hello friends.
I have installed apache, php and MySQL using WAMP version 2.
i can browser the local host, php just works fine. i can connect to the MySql server using Heidi SQL just fine. every thing is ok except i cant connect to the MySQL server using php code. just a blank page appear when i execute the below code. no errror message or anything display at all.
PHP Code:
$link=mysql_connect('localhost','root');
if (!$link) {
echo "Cant connect to my_sql server" . mysql_error();
die();
}else{
echo connected;
}
Only a blank white page appear.
Please help !
Note:- i am using xp with sp2
|