title: Call to undefined function mysql_real_escape_string()
body: <p>//Here is the code from insert.php </p>
  
  <hr>
  
  <p>if ($_SERVER["REQUEST_METHOD"] == "POST") {
          if(isset($_POST['image']) &amp;&amp;  isset($_POST['cate']) ){</p>
  
  <pre><code>        $image = mysql_real_escape_string(trim($_POST['image']));
  
          $cate = mysql_real_escape_string(trim($_POST['cate']));
  
  
  
          $query_input = "INSERT INTO category(cat_name,image) VALUES('$cate','$image')";
          $result_input = insert_fun($query_input);
  </code></pre>