Forums

MySQL Drop Down List (5 posts)

  1. banago
    Member
    Posted 3 years ago #

    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!

  2. whooami
    Member
    Posted 3 years ago #

    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

  3. banago
    Member
    Posted 3 years ago #

    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!

  4. whooami
    Member
    Posted 3 years ago #

    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

  5. banago
    Member
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic