/*
SELECT RC.id_cat, RC.titolo, RS.id_referenza, RS.tit_ref
FROM Refer_Schede AS RS INNER JOIN Refer_Cat AS RC
ON RS.id_cat=RC.id_cat
WHERE RS.id_referenza=1
*/
$sel_attiv = mysql_query(" SELECT RC.id_cat, RC.titolo, RS.id_referenza, RS.tit_ref, RS.txt_ref
FROM Refer_Schede AS RS INNER JOIN Refer_Cat AS RC
ON RS.id_cat=RC.id_cat
WHERE RS.id_referenza=".$_GET['id_ref']." AND RS.valid=1") or die ("Errore nella query: " . mysql_error());
$row_attiv = mysql_fetch_row($sel_attiv);
?>
- Prestazioni in materia catastale
Errore nella query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id_foto LIMIT 0,40' at line 1