$sel=2; include('conf.php'); // query per referenze $sql2 = "SELECT * FROM contents WHERE id_tipo = '3' and lang ='".$_SESSION["LANG"]."' and stato='1' "; if($_GET["termine"]!= ""){ $sql2.= " AND ( "; $keys = explode (" ", $_GET["termine"]); reset ($keys); while (list(,$parola) = each ($keys)) { $parola = trim($parola); if ($parola != "" AND strlen($parola) >2) { $sql2.= " titolo LIKE '%". $parola . "%' OR sottotitolo LIKE '%". $parola . "%' OR testoCleaned LIKE '%". $parola . "%' OR "; } } $sql2.= " 0 ) "; } if($_GET["committente"]!= ""){ $sql2.=" and campo1 = '$_GET[committente]' "; } if($_GET["anno"]!= ""){ $sql2.=" and campo2 = '$_GET[anno]' "; } if($_GET["localita"]!= ""){ $sql2.=" and campo3 = '$_GET[localita]' "; } if($_GET["tipologia"]!= ""){ $sql2.=" and campo4 = '$_GET[tipologia]' "; } $sql2.=" order by ordine ASC"; // query per focus $sql3 = "SELECT * FROM contents WHERE id_tipo = '3' and lang ='".$_SESSION["LANG"]."' and stato='1' and evidenzia='1' order by ordine ASC limit 3"; $res3 = mysql_query($sql3); $res_3 = mysql_query($sql3); ?>
=strSelect(strip_tags(stripslashes($row_3["titolo"])),30)?> ...