Dear All
I just installed XAMPP in my pc. I created a page to connect to MySql DB. This is the code:
<?php
$username = "root";
$password = "";
$hostname = "localhost";
$con = mysql_connect($hostname,$usename,$password) or die ("Unable to connect");
?>
But, when I go to the page I face the following Warning:
Warning: [font=Verdana]mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\dive\index.php on line 12
Unable to connect[/font]
What would be the problem and the solution?!!
Thanks