MySQL Error

Status
Not open for further replies.

mculpepp

New Member
Messages
3
Reaction score
0
Points
0
[FONT=Tahoma, Calibri, Verdana, Geneva, sans-serif]Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dreamc90_dccREAD'@'localhost' (using password: YES) in/home/dreamc90/public_html/index.php on line 16
Access denied for user 'dreamc90_dccREAD'@'localhost' (using password: YES)

This user has full privileges for testing purposes. database is setup correctly and I'm on the x10.bz domain. Can't seem to figure out the issue here. All variables are host='localhost', user='dreamc90_ReaD', pass='NOTREALPASSESOMG'

PHP:
session_start();if (!isset($_POST['username'])){      $_SESSION['user'] = 'Welcome, Guest';}else{      // Connects to your Database 
      $host = "localhost";      $user = "dreamc90_dccReaD";      $pass = "NOTREALPASSESOMG";      $db = "dreamc90_dccDB";
      mysql_connect($host, $user, $pass) or die(mysql_error());       mysql_select_db($db) or die(mysql_error());      $data = mysql_query("SELECT username,password FROM User WHERE username={$_POST['username']}") or die(mysql_error());      $info = mysql_fetch_array( $data );      while($info = mysql_fetch_array( $data ))       {              if ($info['username'] == $_POST['username'])              {                     $_SESSION['user'] = 'Welcome, ' + strtoupper($row['USERFIRSTNAME']);              }              else              {                     $_SESSION['user'] = 'Incorrect Username/Password!';              }      }}


Please all help is appreciated.[/FONT]


Edited by Livewire: Please do not post your passwords; there is no larger security hole than that.
 
Last edited by a moderator:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
$user = "dreamc90_dccReaD";

Access denied for user 'dreamc90_dccREAD'@'localhost'

There seems to be a mismatch.
 
Status
Not open for further replies.
Top