title: mysql_real_escape_string() say Access denied for user 'drrifae'@'localhost'
body: <p>I userd mysql_real_escape_string(), that was ok on my localhost (on my computer run by xampp) but when I upload it to <strong>Linux</strong> server function (mysql_real_escape_string()) say <strong>Access denied for user 'drrifae'@'localhost'</strong></p>
  
  <p>This is my code:</p>
  
  <pre><code>  if($_POST['message']!=""){
          $email=$_POST['email'];
          $name=$_POST['name'];
          $message=mysql_real_escape_string($_POST['message']);
         $ip=$ip = getenv('HTTP_CLIENT_IP')?:
  getenv('HTTP_X_FORWARDED_FOR')?:
  getenv('HTTP_X_FORWARDED')?:
  getenv('HTTP_FORWARDED_FOR')?:
  getenv('HTTP_FORWARDED')?:
  getenv('REMOTE_ADDR');
  
  include('../include/connection.php');
  $sql="INSERT INTO `contact_feedback` (`type`, `ip`, `message`, `name`, `email`) VALUES ('$type', '$ip', '$message', '$name', '$email'); ";
          $result=mysql_query($sql,$con) or die(mysql_query());
          if($result){
              echo $_SESSION['message']='true';
                  $mailMessage=wordwrap($message,70);
                  $mailMessage.='\n \n'.$email.'\n'.$name.'\n \n'.$ip;
              if($type=='1'){
                  $subject="contact";
              }else if($type=='0'){
                  $subject="feedback";
               }
              mail('info@rifae.com',$subject,$mailMessage,$email);
          }else{
              $_SESSION['message']='false';
          }
      }
  </code></pre>
  
  <p>BUT I CAN't USE mysql_real_escape_string()</p>