Here’s the statement:
NSString *sqlCmd = @"SELECT COUNT (*) FROM SiteData WHERE SITE_ID = '%@'", txtSiteID.text;
The error is: expected semicolon at end of declaration’. I don’t see the problem.
Would appreciate any help I can get on this one.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should be:
Or
If you use ARC, you can use either method, otherwise, the first method gives you an autoreleased string, and the second method gives you a string with a retain count of 1 and that you have to release at some point.