Hi All,
I am new to PHP and MYSQL. I installed Apache2.2, MySQL Server 7.0 and PHP 5.2.10.
I created database and table in MYSQL - its working fine.
PHPINFO() - its working fine.
When i tried to connect to my MYSQL using PHP with the following code, i am not getting any error or the die message.
<?php
echo "connecting...<br><br>";
$dbhandle = mysql_connect("localhost","root@localhost","logu")
or die("Could not connect");
echo "Connected to MySQL<br>";
?>
I tried with "root", "root@localhost", "logu", "logu@localhost" for username but nothing works.
It displays only the message 'Connecting...'
The details are in the attachment, it will be of great help if any one helps at an earliest.
Thanks in Advance,
Logu.