Displaying list box's content

wxdqz

New Member
I can fill a list box filled with data pulled from a mysql db. My code is probably not right but it does fill the box with the correct info. Here is my code:
print "<td><SELECT Name=Logo[] size=5 Multiple>";
$Logo_Query = "SELECT DISTINCT Portrait FROM $TableName";
$Logo_Result = mysql_db_query($DBName, $Logo_Query, $Link)
while ($row = mysql_fetch_array($Logo_Result)){
$GetLogo=$row['Portrait'];
print "<option>$GetLogo";}

I want it to do this:
<!-- m --><a class="postlink" href="http://damasta.50megs.com/example.jpg">http://damasta.50megs.com/example.jpg</a><!-- m -->

Basically, when the user clicks on one of the names in the listbox, the image to the right changes to that image. Any help would be appreciated. Thanks.
 
Back
Top