Alexhoward Posted June 11, 2008 Share Posted June 11, 2008 Hello! so i know how to pull a drop down box from mysql. thing is i would like to have a start value that is not in the table e.g. say i'm pulling from a category table. this may include - Home, Electronics, Games .... i would like people to be able to add their own category if it does fit into any of those groups so i would like to include "Add_Category..?" as an option could anyone help me? Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/109801-solved-drop-down-populated-from-mysql-include-value-not-in-table/ Share on other sites More sharing options...
DarkWater Posted June 11, 2008 Share Posted June 11, 2008 Huh? Just add it outside of the loop...And I wouldn't suggest allowing people to add their own categories at will. Quote Link to comment https://forums.phpfreaks.com/topic/109801-solved-drop-down-populated-from-mysql-include-value-not-in-table/#findComment-563477 Share on other sites More sharing options...
Alexhoward Posted June 11, 2008 Author Share Posted June 11, 2008 Hi thanks for the reply, i'll give it a go now don't worry, there'll still be the human element, so we'll check and change where necessary Quote Link to comment https://forums.phpfreaks.com/topic/109801-solved-drop-down-populated-from-mysql-include-value-not-in-table/#findComment-563494 Share on other sites More sharing options...
DarkWater Posted June 11, 2008 Share Posted June 11, 2008 Make it valued like "Add_Cat" and have a special PHP handle for it. Quote Link to comment https://forums.phpfreaks.com/topic/109801-solved-drop-down-populated-from-mysql-include-value-not-in-table/#findComment-563495 Share on other sites More sharing options...
Alexhoward Posted June 11, 2008 Author Share Posted June 11, 2008 Nice one! that works! Cheers! Quote Link to comment https://forums.phpfreaks.com/topic/109801-solved-drop-down-populated-from-mysql-include-value-not-in-table/#findComment-563496 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.