Hi guys!
I am developing my first plugin, but my PHP is still primitive even thought I am learning very fast.
I what to have a dropdown list which will be let's say:
1. apples
2. pears
3. bananas
Is there a MySQL option to have only one of them selected in a dropdown menu? If yes, which is it? If no, how can this be done in PHP.
Thanks very much!
you're way off base. you dont put mysql options inside a drop down without the use of php.
If no, how can this be done in PHP.
you havent provided enough info for anyone to give you that information.
how does php and mysql work:
http://www.google.com/search?hl=en&q=how+to+query+mysql+database+using+php&btnG=Search
Yes, my english is not helpful.
This is what I need to do: I need to have a form which will be stored in a mysql database. One of its options will be supposing a drop down menu with three options. One of the options will be stored only.
How to achieve that?
Thanks very very much!
provide whatever you have already written. Im not going to write a plugin for you, here on the forum.
where do you plan on using the form? Inside posts? use custom fields.
http://codex.wordpress.org/Using_Custom_Fields
No need to write any code. All I want is theory.
Is it just a normal field in the mySQL that stores the data form a drop down, which is different form a written down data :)
Thanks!