Forum Moderators: coopster
what do I miss
thanks
regards
Henry
BTW
I am starting gathering info for a query doc
that could describe as many as possible query hacks
but that is another topic that I will post in another thread
mysql_query("SELECT used_value FROM used_equipment WHERE used_value BETWEEN '$mini_value' and '$maxi_value' AND sector='$sector' ' $query ."%' ");
exit($sql); right after building the $sql variable just to double check your statement. You usually find your answer to unexpected query results (or lack thereof) this way quite quickly. For example:
$sql="SELECT used_value FROM used_equipment WHERE
used_value BETWEEN '$mini_value' and '$maxi_value'
AND sector='$sector' ". $query ."%' ";
exit($sql); // Your code will stop here and print the statement in your browser
mysql_query($query);
I poorly tried to explain that I had a bad feeling about the end of the query
something liek if the sysntax was hurting my eyes without finding the reason why
but since we have moved the double quotes it seems fine
and I will procedd to trial.