title: error while using mysql_real_escape_string()
body: <p>my code-</p>
  
  <pre><code>require 'database.php';
  
  $title = mysql_real_escape_string($_POST['title']);  //line 48
  $cat = $_POST['cat'];
  $txtart = mysql_real_escape_string($_POST['artbody']); //line 50
  $date = date("d-m-y");
  
  $q = "INSERT INTO tblarticle (art_title, art_cat, art_des, art_date) VALUES ('$title', '$cat', '$txtart', '$date')";
  </code></pre>
  
  <p><strong>ERROR--></strong><br>
  Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\shizin\admin\newArticle.php on line 48</p>
  
  <p>Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in C:\xampp\htdocs\shizin\admin\newArticle.php on line 48</p>
  
  <p>Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\shizin\admin\newArticle.php on line 50</p>
  
  <p>Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in C:\xampp\htdocs\shizin\admin\newArticle.php on line 50</p>
  
  <p><strong>But data is getting saved in DB but null titile and artbody fields</strong></p>