title: Echo success on delete mysql data
body: <p>I have a MySQL table. My PHP script is suppose to return <code>true</code> if a row get deleted. But, I am getting <code>true</code>, no matter whether the row get deleted or not. I am posting the code below;</p>
  
  <pre><code>$query = "delete from mytable where qwerty='asdf'";
  $delete = mysql_query($query);
  
  if($delete){
    echo "true";
  }else{
    echo "false";
  }
  </code></pre>
  
  <p>I want to echo <code>true</code> if row get deleted and <code>false</code> if not get deleted. How can I do this?</p>