Sorry still doesnt work, ill try and explain my db slightly better and what i am trying to achieve.
Thanks for your help by the way.
the two tables i am talking about are customer_details and sources,
when entering a new customer you have to enter their source,
but there are new sources added all the time so that is why i needed the dropdown list to pull data from the sources table dynamically. this works great, the problem is:
that when i come back to edit a certain customer the source field doesnt show the one i chose (it shows the first entry in the sources table) even though in my db admin it shows the correct value
what can i do the code i use for non dynamic drop down boxes works
<option <? if($lead_status=="Please Select"){ echo "selected";}?> >Please Select</option>
but not for the dynamic box i just get errors
hope this makes it more clear
Thanks for your help and for being so patient with the rubbish i keep typing