This is the error message I am running into:
Warning: mysqli::mysqli() [function.mysqli-mysqli]: (28000/1045): Access denied for user 'conult_test'@'localhost' (using password: YES) in /home/consult/public_html/development/Testing/26/db_fns.php5 on line 5
I get this at http://tinyurl.com/ycyhan when I try to use the login.php5 file with the username as bm_user and the password set to password.
The function file it references is here:
<?php
function db_connect()
{
$result = new mysqli('localhost', 'conult_test', 'password', 'bookmarks');
if (!$result)
throw new Exception('Could not connect to database server');
else
return $result;
}
I am totally lost - What am I doing wrong here? If I could just figure out this connection piece I am sure I could work through the rest of the code.
Thanks 😕