geekgirl101 Posted March 29, 2007 Share Posted March 29, 2007 I have a little problem... I'm trying to update a main page with a list of details matching a selection from a display of images that are displayed in a small window that have been selected from an image group using a select box in the main window, however I don't know how to do this and the main page is not receiving anything when clicking on an image so it's refreshing with empty data. I've seen many many pages giving examples of how to do this with select boxes or how to do this if only one entry uses an image shown in the small window, but the image display window is displaying many different small images not a select box and the database itself has multiple entries that use the same image. Can anyone help? I have a few instant chat programs if someone wishes to discuss this with me in real-time to see what it is I'm trying to achieve. Link to comment https://forums.phpfreaks.com/topic/44814-using-php-and-mysql-to-select-from-database-using-images/ Share on other sites More sharing options...
genericnumber1 Posted March 29, 2007 Share Posted March 29, 2007 I couldn't really read anything you said... Maybe try posting some code. Link to comment https://forums.phpfreaks.com/topic/44814-using-php-and-mysql-to-select-from-database-using-images/#findComment-217628 Share on other sites More sharing options...
DeathStar Posted March 29, 2007 Share Posted March 29, 2007 How do you mean? Just to call it? $img_id = checkbox.value; $picture = mysql_query("SELECT `image` FROM `table` WHERE `img_id`=$img_id"); echo "<img src='$picture'>"; Link to comment https://forums.phpfreaks.com/topic/44814-using-php-and-mysql-to-select-from-database-using-images/#findComment-217633 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.