Skip navigation.
 
mlRe: Lengthy questions from a newbie (and a new problem)
FROM : Ryan Britton
DATE : Thu Jun 22 01:39:53 2006

On Jun 21, 2006, at 4:26 PM, Benjamin Einstein wrote:

>
> Does anyone outthere have experience with MCPKit (formerly known as 
> SMySQL)? I'm running into quite a strange problem. Connecting to 
> the database and running queries seems to work very well unless you 
> want to use a string created at runtime. Here's where we get stuck:
>
> theResult = [theConnection queryString:(@"SELECT password FROM 
> users WHERE username = '%@'", username)];


I'm not sure if the -queryString: method can take a format list, but 
this is definitely not the to do it if it can.  Try:

theResult = [theConnection queryString:[NSString 
stringWithFormat:@"SELECT password FROM users WHERE username = '%@'", 
username]];

Related mailsAuthorDate
mlLengthy questions from a newbie beinstein Jun 20, 00:41
mlRe: Lengthy questions from a newbie Yorh Jun 20, 01:24
mlRe: Lengthy questions from a newbie colela Jun 20, 01:38
mlRe: Lengthy questions from a newbie James Bucanek Jun 20, 02:24
mlRe: Lengthy questions from a newbie Paul Lynch Jun 20, 18:39
mlRe: Lengthy questions from a newbie Keary Suska Jun 20, 18:44
mlRe: Lengthy questions from a newbie (and a new problem) Benjamin Einstein Jun 22, 01:26
mlRe: Lengthy questions from a newbie (and a new problem) Ryan Britton Jun 22, 01:39
mlRe: Lengthy questions from a newbie (and a new problem) Benjamin Einstein Jun 22, 01:45
mlRe: Lengthy questions from a newbie (and a new problem) Shaun Wexler Jun 22, 02:15
mlNSUserDefaults from within a bundle Benjamin Einstein Jul 2, 18:17
mlRe: NSUserDefaults from within a bundle Bill Bumgarner Jul 2, 19:03
mlRe: NSUserDefaults from within a bundle Paul Collins Jul 2, 20:25
mlRe: NSUserDefaults from within a bundle Benjamin Einstein Jul 2, 20:33