josephicon Posted February 15, 2007 Share Posted February 15, 2007 Hi All I Currently have: print "" .(($get_fields->fieldname == "id" ) ? "<input name=$get_fields->fieldname value=$nextid $get_fields->fieldview" :"other box"). I would prefer to keep $nextid in the table itself so that I am not limited to the "id" field and its variable and output it as $nextid which is defined on the page . is this possible. If not how can I add more conditions as opossed to the current to the current 2 print eg $get_fields->fieldname == "status" $get_fields->fieldname == "sector". Many Thanks Link to comment https://forums.phpfreaks.com/topic/38664-pulling-variable-from-mysql-table/ Share on other sites More sharing options...
josephicon Posted February 15, 2007 Author Share Posted February 15, 2007 If my question was not clear enough I will add that I would basicly like to create html input boxes based on a mysql table but also adding value from a page variable dependent on table result. Link to comment https://forums.phpfreaks.com/topic/38664-pulling-variable-from-mysql-table/#findComment-185852 Share on other sites More sharing options...
trq Posted February 15, 2007 Share Posted February 15, 2007 Pardon? Link to comment https://forums.phpfreaks.com/topic/38664-pulling-variable-from-mysql-table/#findComment-185856 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.