Hi All,
i have a form that outputs a record from my database for editing. I have a couple of dropdown options on there and want them to display the CURRENT value in the database record so they can alter it if needed. Im able to do this no probs in Coldfusion but am struggling to transfer the coding to php! any help? The dropdowns are initially populated with values from seperate lookup tables in the database, where a primary key in the lookup references a foreign key in the main record.
So far i have tried Selected="selected" in my option tag, but this brings up random records!
Thanks!
i have a form that outputs a record from my database for editing. I have a couple of dropdown options on there and want them to display the CURRENT value in the database record so they can alter it if needed. Im able to do this no probs in Coldfusion but am struggling to transfer the coding to php! any help? The dropdowns are initially populated with values from seperate lookup tables in the database, where a primary key in the lookup references a foreign key in the main record.
So far i have tried Selected="selected" in my option tag, but this brings up random records!
Thanks!