Jump to content

Search Page


Guest isadmin

Recommended Posts

Guest isadmin

Hello,I am new to PHP. I have created a php search page. I have a mysql database that I'm retrieving my data from. The search page works really well, I have combo boxes that are populated from tables in the database.My problem is I can only perform 1 search from only one field from my search page. For example: I want my users to search by Name, City, and or by State. Currently I have my code to search by name, I can switch it to search by city, but I don't know how to code to search by all criterias met. I think I need some type of code like "If, Then" or "And" statement.Please help!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...