Hi Neroux, you always come to my rescue! Thanks...
OK, your code now results in a value in the menu, so that's a step forward. The result of the query, however, needs to be split up and echoed separately - i.e instead of 250,500,750,1000 appearing as one value, they should each be a separate option. So, I've adjusted the code as follows and I'm still just getting the word "Array" in the menu.
PHP Code:
include ("dbconnect.inc.php"); $product_id=$_GET['product_id']; $query="SELECT quantity FROM products"; $result=mysql_query($query); mysql_close(); echo "<select name=\"quantity\">"; while ($row=mysql_fetch_row($result)) : $options = explode(",", $row); echo "<option>"; echo $options[0]; echo "</option>"; endwhile; echo "</select>";
Any ideas? Thanks again...
|