PHP - MYSQL creating an Advanced query from Form output

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
afletcher
Forum Newbie
Posts: 1
Joined: Mon Feb 25, 2008 3:18 pm

PHP - MYSQL creating an Advanced query from Form output

Post by afletcher »

Hello all, I have just started using PHP to communicate with my Mysql server and am struggling to figure out how I can produce a section of code to contruct a single $query variable out of a "form post"
Example:
Form has 7 fields, FName,LName,Town,Postcode......etc
User chooses to search entering only one field (FName)
Submits
I now need a php script to check all feilds for existence of strings and then create a Myqsl Query with the fields pnly that have string....

Hope this makes sense...

Look forward to any help and guidance...

Fletch :banghead:
Post Reply