Hi Rabbit,
Please forgive my ignorance, but how do I go about doing that?
User Profile
Collapse
-
And then I have....
...Code:<?php do { ?> <p><img src = "images/<?php echo $row_Test['Product_Image_Small']; ?>" align="left"/><br /> <a href="productdetails.php?recordID=<?php echo $row_Test['Product_ID']; ?>" > <?php echo $row_Test['Product_Title']; ?></a><br />Leave a comment:
-
Create dropdown menu retrieves all items in a database
...Code:$query_Test = "SELECT * FROM Products WHERE Product_Type='$Product_Type' ORDER BY Product_Title ASC"; $query_limit_Test = sprintf("%s LIMIT %d, %d", $query_Test, $startRow_Test, $maxRows_Test); $Test = mysql_query($query_limit_Test, $WPhoto) or die(mysql_error()); $row_Test = mysql_fetch_assoc($Test); <form id="form1" name="form1" method="get" -
Dropdown Menu Item to GET All in a database?
Hi all!
I am a newbie and unfamiliar with PHP and MySQL... I am trying to create a dropdown menu that defaults to all items in my database while still allowing one to also filter to certain products. Right now, I have a database named Products and am trying to base my dropdown off of the three different Product_Type items (Chips, Dips & Marinades, Rubs). Below is my code that I have so far which gets the individual Product_Type items,...Last edited by zmbd; Dec 9 '12, 03:05 PM. Reason: [Z{Please use the <CODE/> button to format posted code/HTML/SQL}]
No activity results to display
Show More
Leave a comment: