here is an example of a query I am using:
$result = mysql_query ("SELECT * FROM Mlsfull1 WHERE LISTNUMBER = '$listnumber%' OR LISTPRICE >= '$minprice%'
AND LISTPRICE <= '$maxprice%'");
The users inputs the minprice and maxprice. the query is supposed to search for all records between those values.
The problem is the value for LISTPRICE is in the format 12,345 and the <= and >= doesn't work properly. I would like to change the value to 12345 so it will work. Any ideas.