techker Posted February 1, 2009 Share Posted February 1, 2009 hey guys i have a databse withe images in it(just the path to the image folder) i want to make a list menu but instead of the pic name i want the image to show instead?is that possible??? or when you select the name the image apears?that would be better.thx Link to comment https://forums.phpfreaks.com/topic/143403-list-menu-with-images/ Share on other sites More sharing options...
techker Posted February 2, 2009 Author Share Posted February 2, 2009 this is what i tryed up to now. <? $query = "SELECT * FROM clients_graph"; $result = mysql_query($query)or die(mysql_error()); print "<SELECT name=\"client\">"; while ($line = mysql_fetch_array($result)) { echo "<option value=\"$line[id]\">$line[2]</option>"; } //print "</select>"; echo "<img src='/Account/PICS/". $line['2'] ."' border='0' hight=120/>"; print "</select>"; ?> Link to comment https://forums.phpfreaks.com/topic/143403-list-menu-with-images/#findComment-752264 Share on other sites More sharing options...
RichardRotterdam Posted February 2, 2009 Share Posted February 2, 2009 You can't place an image inside a <select> element use divs and javascript instead Link to comment https://forums.phpfreaks.com/topic/143403-list-menu-with-images/#findComment-752395 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.