I know this is in no way the correct coding, but it gets my point across.
I am building a data base for bands to post their gigs so if someone feels like they wanna go see a gig they can just search for one in their home town, county etc.
They can search by:
Date
Venue
Band Name
Style
Country
County
No field would be "required" but of course the more fields you fill in, the better.
There must be a way of searching like this as it is used in this very forum, and many other websites, but I can't find the coding anywhere.
Please help....!!!
Make Sense? I hope so (-:
I am building a data base for bands to post their gigs so if someone feels like they wanna go see a gig they can just search for one in their home town, county etc.
They can search by:
Date
Venue
Band Name
Style
Country
County
No field would be "required" but of course the more fields you fill in, the better.
Code:
display all results of exact match to $gigDay,$gigMonth,$gigYear from gigFinder. if $gigDay,$gigMonth,$gigYear="" move on.
(and)
display all results of $gigVenue from gigFinder. if $gigVenue="" move on;
(and)
display all results of $gigBandName from gigFinder. if $gigBandName="" move on;
(and)
display all results of $gigPlay from gigFinder. if $gigPlay="" move on.
(and)
display all results of $gigCountry from gigFinder. if $gigCountry="" move on.
(and)
display all results of $gigCounty from gigFinder. if $gigCounty="" move on.
if all fields="" display all records
Please help....!!!
Make Sense? I hope so (-: