php multiple select drop down
        Posted  
        
            by Chocho
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Chocho
        
        
        
        Published on 2010-04-12T15:20:41Z
        Indexed on 
            2010/04/12
            15:23 UTC
        
        
        Read the original article
        Hit count: 436
        
here is my mysql and php code layout:
-i have 3 tables -tableA stores unique "person" information -tableB stores unique "places" information -tableC stores not unique information about a person and places they have "beenTo".
here is how i layed out my form: -one big form to insert into "person" tableA; "beenTo" tableC in the form, a person mulitple selects "places" which get inserted into "beenTo"
my question is, when i am editing a "person" how do i display what the user has already selected to appear on my multiple select options drop down menu?
my drop down menu at the moment query "places" table and displays it in a multiple select drop down menu. its easier when a person have beenTo one place, the problem arrises when there is more than one "beenTo" places?
any ideas. thanks
© Stack Overflow or respective owner