I am having a problem with simple select statement
When I run this statement in my PHP program.. no result..
$sql= "select * from zipcodes where zip between $pluszip and $minuszip";
But when I run the below statement I get the results..
$sql= "select * from zipcodes where zip between 12345 and 12456";
I tried this one also, but no result
$sql= "select * from zipcodes where zip between '$pluszip' and '$minuszip'";
I tried echoing pluszip and minuszip and i am getting the values printed..I am having trouble with passing it on to the select statement.
regards
MP
When I run this statement in my PHP program.. no result..
$sql= "select * from zipcodes where zip between $pluszip and $minuszip";
But when I run the below statement I get the results..
$sql= "select * from zipcodes where zip between 12345 and 12456";
I tried this one also, but no result
$sql= "select * from zipcodes where zip between '$pluszip' and '$minuszip'";
I tried echoing pluszip and minuszip and i am getting the values printed..I am having trouble with passing it on to the select statement.
regards
MP