1

Reading a value from a database

view story
linux-howto

http://stackoverflow.com – I have a database in my app with several columns of which 3 are: _id name selected. Now, I want to read a single selected value from a row with the name being a string I get from some code. What would be the best way to do this? Thanks P.S. I am getting that value to check if it's 0 or 1 (only two possible values), so I want to ask how to make a kind of an if statement in the return field? I have seen some people do it with something resembling this: return true ? ... false (HowTos)