0
<?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 inserted through PHP the following record "Pop Water Box" (with simple quotes), I managed to do this by escaping the characters with the mysql_real_escape_string. Now I need to delete this record, but the mysql_real_escape_string is not working to delete. How can I do this?
And why not insert without quotation marks, but print them only when necessary? Have you tried "'Hello'" OR "'Hello'?'"
– Vinicius De Jesus