Go Back   SitePoint Forums > Forum Index > Program Your Site > PHP
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Jan 11, 2006, 13:32   #1
satre
SitePoint Enthusiast
 
Join Date: Mar 2005
Posts: 31
radio button list from MySQL with PHP

Hi All,

Is there a way to use PHP to make a radio button list from data in a MySQL table? I'd like to be able to add data to the table in the future and have the radio buttons added automatically. I've been using code for a popup menu that fetches an array whose members correspond to a unique ID number, but the design I'm working on would work best for radio buttons. This is for an artists portfolio website of a lot of artists and I'm making a search page that includes parameters such as style (abstract, representational, conceptual), medium (painting, sculpture, ...), and materials (oil, acrylic, stone, ...).

Example:
Looking for artists that work in:
painting (button)
sculpture (button)
works on paper (button)
collage (button)
.
.
.
.
and so on

Thanks!
Satre
satre is offline   Reply With Quote
 

Bookmarks

« Previous Thread | Next Thread »

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 02:13.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved