Ecco il mio script :
$query_out="SELECT * FROM $tabella WHERE ((campo1!='S') AND (campo2!=\"I\") AND (campo3!='S') AND (campo4!='S')) ORDER BY prezzo DESC LIMIT 4 OFFSET $n_off";
print ("
$query_out
");
$link_db = mysql_connect ($host, $user, $password)
or die("Connessione non riuscita");
mysql_select_db($dbname)
or die("Selezione del database non riuscita");
$result = mysql_query($query_out) or mysql_error();
.. mi sono stampato a video la query ed il valore di $n_off è 10 ...
Come posso mettere la notazione dell'errore alla query ?
Grazie mille.