I'm doing a webpage for a university task but I'm having problems with this code.
if ($_POST["id_temporada"]>0 and $_POST["query"]=="") {
$consulta="select * from obras where id_temporada=".$_POST["id_temporada"];
}
also with this one
if ($_POST["id_temporada"]>0 and $_POST["query"]<>"") {
$consulta="select * from obras where temporada=".$_POST["id_temporada"]." and nombre
like '%".$_POST["query"]."%'";
}
In both cases, I have the notice I posted on the title. What should i do?