ho stampato a video la query con questo;
Codice PHP:
if($ricerca!=""&&$categoria=="") $sql="Select * From ARCHIVIO Where Nome Like '%$ricerca%' or Recensione Like '%$ricerca%'";
if($ricerca!=""&&$categoria!="") $sql="Select * From ARCHIVIO Where Nome Like '%$ricerca%' or Recensione Like '%$ricerca%' and IDC like '%$categoria%'";
$QueryCerca=@mysql_query($sql) or die (mysql_error());
echo $sql;
echo "
".$QueryCerca;
mi da questo:
Select * From ARCHIVIO Where Nome Like '%dvd%' or Recensione Like '%dvd%'
Resource id #8