Forum Moderators: coopster

Message Too Old, No Replies

PHP - Form submission and retrieving results from multiple selection

         

pixeldiver

6:51 am on Jun 25, 2009 (gmt 0)

10+ Year Member



Hi all, I'm trying to develop a graphical user interface using a form. The interface consists of two selection groups with images.

Selection group 1: Application; a user has different options to select from Commercial, Health etc. (one only).

Selection group 2: Installation; same again a user can select from different options: Pendant, Recessed etc. (one only).

And there is a submit button where users can submit their search.
I should be able to display images retrieved from mysql depending on choices beeing made.

The database consists of images with corresponding rows like pendant commercial all with a value of 1 or 0.

As I'm a newbie in the php world - no clue where to start, is there anybody who could help me?
THANKS

jatar_k

8:17 pm on Jun 25, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld pixeldiver,

you have the database, that's good

so start by making the form, start with the form pointing to some random script that just spits out the posted data. From there you can start putting together the posted data into a query, then organizing the returned data from mysql.

there are a couple threads in [url=]our library[/url] that might help
Basics of extracting data from MySQL using PHP [webmasterworld.com]
Developing MySQL search query [webmasterworld.com]

they link to some others as well

pixeldiver

10:14 pm on Jun 25, 2009 (gmt 0)

10+ Year Member



Thanks Jatar_k,

very good explained topics, I will try to put the scripts together and I will soon see if it fires or not.

Cheers