Hey fellows, I have three database tables
AUCTIONS
auction_id
name
description
place
date
BIDDERS
bidder_id
firstname
lastname
email
signupdate
BIDS
bid_id
auction_id
bidder_id
biddate
I want to create a drop down menu to select and display BIDDERS signed up for each AUCTIONS. I have coded the following in PHP to select the auction_id and title from AUCTIONS table into the drop down list.
<!-- Assuming connected to mysql database -->
<form id="form1" name="form1" method="post" action="">
<?php
$query="SELECT * FROM auctions";
$result =mysql_query($query,);
$options="";
while ($row=mysql_fetch_array($result)) {
$auction_id=$row["auction_id"];
$name=$row["name"];
$options.="<OPTION VALUE=\"$auction_id\">".$name.'</option>';
}
?>
Auction:
<select name="select" id="select">
<option value="Select All">Select All</option>
<?=$options?>
</select>
</form>
I want that when the user selects an option it displays the list of bidders entered to that particular auction using auction_id as their reference without submit button. Any ideas? Thank you.