Skip navigation.
 
mlRe: Lengthy questions from a newbie (and a new problem)
FROM : Shaun Wexler
DATE : Thu Jun 22 02:15:44 2006

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

> theResult = [theConnection queryString:(@"SELECT password FROM 
> users WHERE username = '%@'", username)];
>
> Am I doing something flagrantly wrong?


Yes, you can't parenthesize the two arguments.  The compiler will 
evaluate the expressions on either side of the comma separately, but 
only pass the leftmost arg as the result of the parenthesized value. 
Try:

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

--
Shaun Wexler
MacFOH
http://www.macfoh.com

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