MySQL Forums
Forum List  »  Knowledge Base

checking for values
Posted by: Joe Anderson
Date: July 16, 2009 02:57PM

Greetings, I am fairly new to using php in conjunction with mysql. Right now I am trying to write a script that will preform the following:

I have a table with a list of names.

what I would like to do is a query to see if a name is in the table.
If the name is in the table, then the out put response to be a bolean value of 1
if the name is not in the table, then the out put response to be a bolean value of 0

Options: ReplyQuote


Subject
Views
Written By
Posted
checking for values
2102
July 16, 2009 02:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.