I have the following php code:
<?php
$host=“localhost”;
$db=“kirupa”;
$user="";
$pass="";
$connect=mysql_connect($host,$user,$pass) or die (mysql_error());
mysql_select_db($db,$connect);
?>
I type in the browser : http://localhost/connectMySQL.php, and I get the following message:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘ODBC’@‘localhost’ (using password: NO) in C:\xampp\htdocs\connectMySQL.php on line 6
Access denied for user ‘ODBC’@‘localhost’ (using password: NO)
Looking for expert to pinpoint my mistake.