Jump to content

How can I get php to return true or false when it checks a database for a var?


pneudralics

Recommended Posts

I want to look for id 9. I know how to check the database with WHERE = '9', but what do I do to make it return true or false when it finds or not find 9?

 

I pretty much want to check the database field id for a specific number. Not sure if the above is the way to go. I want php to tell me they found 9 or not.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.