-(IBAction)EnterButtonPressed:(id)sender
{
const char *sql = "SELECT AccessCode FROM UserAccess";
double result = ([Password.text doubleValue]);
if(sql == result )
{
NSLog(@"Correct");
}
else {
NSLog(@"Wrong");
}
}
-(IBAction)EnterButtonPressed:(id)sender { const char *sql = SELECT AccessCode FROM UserAccess; double result = ([Password.text
Share
The main thing you’re doing wrong is not sending that SQL query to the database. You probably ought to add in some kind of
WHEREclause too. And… well, there’s quite a lot wrong with that code to be honest.