I am making a job portal site. the job seeker in my site enters his date of birth by using three drop down lists (date,month,year). this value i concatenate and insert into database as (1990-09-28). when the user presses the edit button , i want to retrieve this date and display in the drop down list. i first explode the string value i recieve from database into an array. so i have values like :
now i want the same values to appear selected in my drop down list. I have made a function make_date_list(),and i use it for displaying the drop down list of date where i want. i dont want to use the if condition for it will be very long code.
please forward any suggestions.