mattkirtley Posted February 4, 2010 Share Posted February 4, 2010 Hi, I have an insert script into a database with serveral fields one of them is a drop down box fed from a mysql database, what i need to do is in the next field populate it with a field from the same database driven by the choice from the drop down box ?> <option value="<?php echo $row_artists['artist_show']?>" ><?php echo $row_artists['artist_show']?></option> <?php } while ($row_artists = mysql_fetch_assoc($artists)); ?> </select> Any ideas? Many thanks! Link to comment https://forums.phpfreaks.com/topic/190918-drop-down-box-php-mysql/ Share on other sites More sharing options...
bbaker Posted February 4, 2010 Share Posted February 4, 2010 do you mean that you have a drop down list, then once you select an option from the list you want to populate the next input field with data depending on the selected option? You'll need javascript for that. Link to comment https://forums.phpfreaks.com/topic/190918-drop-down-box-php-mysql/#findComment-1006908 Share on other sites More sharing options...
mattkirtley Posted February 4, 2010 Author Share Posted February 4, 2010 Ah right, I have been pulling my hair all day trying different quiries! Thanks for that - any ideas where i can find a decent script? Link to comment https://forums.phpfreaks.com/topic/190918-drop-down-box-php-mysql/#findComment-1006937 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.