is there a way to choose the initial value of a select tag from what the database really holds for that attribute?
EX: A table containing these records
ID NAME JOB
-- ---- ---
22 John ENG
23 Alex DOC
24 Peter SEC
if I wanted to edit one of these records while having a select to hold these 3 different Jobs, is there a way to select the initial value of this tag to be ENG if I wanted to edit John's record and be DOC if I chose to edit Alex's record?
NOTE: Guys I know that way that this post provides but I was asking for a way that I doesn't need to change the php code if I slightly changed the lower schemas :)