HO fatto esattamente coem suugerito cioe :
"SELECT *
FROM ". $tabella ."
WHERE categoria = ". $contratto ." AND citta = ". $cit ." AND ". $nvani ." BETWEEN ". $nvani1 ." AND ". $nvani2 ."
ORDER BY ID DESC"
ricevo qeusto errore :
You have an error in your SQL syntax near 'BETWEEN 1 AND 14 ORDER BY ID DESC' at line 3
alla linea 3 del codice ce questo :
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
e un codice creato da dreamweaver perche ho usato i comportamenti server di dreamweaver.
sapreste spiegarmi dove sbaglio?( a parte il fatto che so di dover abbandonare dmw e scrivere codice da me non farlo scrivere al programma) :=)
grazie