I have this script:
<?php
if(isset($searchprice)):
$db = mysql_connect("localhost");
mysql_select_db("saintparis", $db);
$sql="select * from class where class_price>='$littlenumber' and class_price<='$bignumber'";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
printf("<b>ยป</b><a href='classoutfinal.php?finalclassid=%s'>%s</p>",$row["class_id"],$row["class_name"]);
}
exit;
endif;
?>
There is two numbers coming from a form. The user puts in a littlenumber and a bignumber. I want it to get the whole range. Any ideas why its not working?
It gets if the bignumber equals the number i am trying to get it works. But not any others. Any help?
Thanks!
Chad