GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 12-Feb-2007, 14:34
markyp markyp is offline
New Member
 
Join Date: Nov 2006
Posts: 26
markyp is on a distinguished road
Lightbulb

Drop down menu


Hi all,

Am doing the database end of my system and am in the process of adding rows to the tables. For a specific part in the table guest I would like to include a drop down menu under gender where the user can select M or F without typing this manually. Does anyone no if and how this can be achieved

thanks Mark
  #2  
Old 13-Feb-2007, 08:16
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 749
admin will become famous soon enough

Re: Drop down menu


I can't tell if you're asking about the markup (HTML) or if you are seeking suggestions on how you should create the particular (db table) column.

I won't assume it's the markup-thingy...

I suppose you could use ENUM type but if this is something I was doing, I would create the column as a TINYINT(1), name the column as `female` and the only possible values would be 1 or 0; in other words, true or false.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #3  
Old 13-Feb-2007, 09:28
markyp markyp is offline
New Member
 
Join Date: Nov 2006
Posts: 26
markyp is on a distinguished road

Re: Drop down menu


either of them not sure would be best, was thinking about having a drop down list of countries to select from too, would this ned to be done using php?
 
 

Recent GIDBlogA Week in Kuwait by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shapes Functions Version 2 - Arrays! Cecil C Programming Language 1 09-Jul-2006 20:39
Pass by references? Cecil C Programming Language 4 29-Jun-2006 02:30
Need Help Modifiying the script of a menu demtro Web Design Forum 1 23-Sep-2005 19:30
How do I install a drop down menu? rhino1616 Web Design Forum 1 30-Aug-2005 05:22
Can someone suggestion a nice drop down menu? rhino1616 Web Design Forum 4 22-Aug-2005 10:16

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:00.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.