Jump to content

search criteria


marquis
 Share

Recommended Posts

Well the most common way I see it is a if statement Like this:

 // Database connection here// Query database$sql = mysql_query("SELECT * FROM some_table WHERE data=$data");if(!$sql){	echo "No Matches Found";}

Not sure if that is what your looking for or if your actually pulling data out first then doing a check but if that is the case then you just do an if statment comparing your results to what your searching for and pretty much do the same thing as above code.Hope that helps

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
 Share

×
×
  • Create New...