ClarkF1, if you don't please check my code, i tried to incoprate it in my code.
It's return a pulldown but empty/blank
//store all field names as variables
$name=$nextresult['name'];
$address=$nextresult['address'];
$city_name=$nextresult['city_name'];
$tel =$nextresult['tel'];
$website =$nextresult['website'];
$email =$nextresult['email'];
$quantity =$nextresult['rooms'];
// Print out the contents of the entry
print ("Hotel Name: $name");
print ("<br/>Address: $address");
print ("<br/>City: $city_name");
print ("<br/>Telephone: $tel");
print ("<br/>Website: $website");
print ("<br/>Email: $email");
print ("<br/>Quantity: $quantity");
print ("
<form action='processroombooking.php' method='post'>
<select name='quantity'>
$i = 1
while ($i <=$quantity)
<option value='$i'>$i</option>
$i++
}
</select>
<input type='submit' name='submit' value='Book'>
</form>
");
Am sure of the $quantity variable as it already return the correct values in th first section of the code. i think problem with quotation marks or something like that