iPower Hosting
 
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Web Directory

Go Back   Webmaster Forum > Designing and Developing Websites > Programming > PHP / MySQL

PHP / MySQL Discussions and help on PHP and MySQL.

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-2008, 09:06 PM
brandono brandono is offline
WMG Newcomer
 
Join Date: May 2008
Posts: 43
iTrader: (0)
brandono is on a distinguished road
Default PHP Dropdown list?

I am wondering if anyone knows how or if I can have a dropdown menu on a form of table entries.

EXAMPLE: Form asks what kind of home you want to build?

Table Homes has: Ranch, Cape, SaltBox, Two-Story, etc.

those choices would be in the drop down of choices.

This way if ever a new type of home is available then it could just be added to the table of homes instead of the page recoded to add another option?

Thank you in advance

EDIT -- I'm using PHP5 and MySQL BTW
__________________
http://www.mofiki.com - Macro's and other Automation Software
Reply With Quote
Sponsored Links
Register and sign in to hide this ad block

  #2 (permalink)  
Old 06-04-2008, 07:00 AM
creek23 creek23 is offline
WMG Deputy Sheriff
 
Join Date: Mar 2007
Posts: 290
iTrader: (0)
creek23 is on a distinguished road
Default

one table will contain three (3) columns.
a.) the item ID
b.) item name
c.) optionally, should it be displayed as available?

then you PHP will simply fetch all rows that should be displayed. in this regard, how are you going to display it? thru HTML? Java? or Flash?
Reply With Quote
  #3 (permalink)  
Old 06-04-2008, 01:24 PM
brandono brandono is offline
WMG Newcomer
 
Join Date: May 2008
Posts: 43
iTrader: (0)
brandono is on a distinguished road
Default

I will just be displaying the options in an html form via <option></option> tags. There is already a table with all the options in it but this table will be updated frequently and i need whats updated in the tables to automatically be a choice on the form

Thank you for your response so far
__________________
http://www.mofiki.com - Macro's and other Automation Software
Reply With Quote
  #4 (permalink)  
Old 06-07-2008, 07:47 AM
creek23 creek23 is offline
WMG Deputy Sheriff
 
Join Date: Mar 2007
Posts: 290
iTrader: (0)
creek23 is on a distinguished road
Default

just do the usual "SELECT * FROM tablexxx WHERE available=1".

well i guess, that's all in it.

Last edited by creek23 : 06-07-2008 at 07:49 AM. Reason: pseudo SQL
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT. The time now is 06:44 AM.



Freelance Web Designers
Work At Home Forum
Ad Marketplace
Online Deals and Bargains
iPower Hosting Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0