<?php
require 'conn.php';
$del_cidade = mysql_real_escape_string($_POST['del_cidade']);
$pop = mysql_real_escape_string($_POST['l_pop']);
$excluir = mysql_query("DELETE FROM pops WHERE pop = '$pop' AND cidade_id = '$del_cidade'");
sleep(1);
header("Location:painel_adm.php");
?>
I entered through PHP the following record "Water Box Pop" (with single quotation marks), I was able to do this by escaping the characters with mysql_real_escape_string. Now I need to delete this record, but mysql_real_escape_string is not working to delete. How can I do this?