The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

This works fine. My question is, how can I detect the value which is actually mentioned in the database and have the drop down automatically display the right value ? I have a page where I need to update the values for a specific car, so for the update page, I need the dropdown list to show the saved data which is in the db.

I tried like this, but I can't make it work, I'm stuck I guess with the ' and the "

Just use single quotes so you don't need to escape double quotes. Unnecessary escaping causes cancer.

You may not be seeing the preselected value if you are hitting refresh in Firefox. It remembers your last "entry" between page requests. You need to hit enter from the address bar to request the page again for the selected to take effect.