Using PHP to access MySQL data. I am able to create a form that has editable fields which allow me to change data in the database. For example I use:
First Name: <input type="text" name="ud_firstname" value="<? echo $firstname; ?>">
as a form field and I can edit the data. What I need help on is using data from the database record to preset a drop down box. The <select> has different options than <input> and I don't know where to start.
Thanks
First Name: <input type="text" name="ud_firstname" value="<? echo $firstname; ?>">
as a form field and I can edit the data. What I need help on is using data from the database record to preset a drop down box. The <select> has different options than <input> and I don't know where to start.
Thanks