connection.inc.php
Code: Select all
<? php
$username = 'test';
$password = 'test';
$hostname = 'localhost';
$dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");
?>
Code: Select all
...
<?php
include "connection.inc.php";
?>
...
$result = mysql_query("select * from system.user where username = '$user and password = '$pass' " ) or die(mysql_error());
Access denied for user 'ODBC'@'localhost' (using password: NO)
Thanks for the help.
Jess