If i do the code like this
// Check that the values of minval and maxval are numeric
// Alter the 1, 15 to the min and max number of digits minval and maxval are allowed to have
if ((!ereg("[0-9]{1,15}$", $GET['minval'])) ||
(!ereg("[0-9]{1,15}$", $GET['maxval'])));
{
echo "Invalid input data";
exit;
}
And
$sqlquery = "SELECT * FROM properties WHERE country = '$country' or id = '$id' AND ((field_name >= $GET[minval]) AND (field_name <= $GET[maxval]))";
And the address is
?country=uk&id=&minval=10&maxval=10000000
It just outputs the Invalid input data. SO how can i fix this.