• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Lengthy questions from a newbie (and a new problem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lengthy questions from a newbie (and a new problem)


  • Subject: Re: Lengthy questions from a newbie (and a new problem)
  • From: Ryan Britton <email@hidden>
  • Date: Wed, 21 Jun 2006 16:39:53 -0700


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]];

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Lengthy questions from a newbie (and a new problem)
      • From: Benjamin Einstein <email@hidden>
References: 
 >Re: Lengthy questions from a newbie (From: Keary Suska <email@hidden>)
 >Re: Lengthy questions from a newbie (and a new problem) (From: Benjamin Einstein <email@hidden>)

  • Prev by Date: Re: Lengthy questions from a newbie (and a new problem)
  • Next by Date: Re: Lengthy questions from a newbie (and a new problem)
  • Previous by thread: Re: Lengthy questions from a newbie (and a new problem)
  • Next by thread: Re: Lengthy questions from a newbie (and a new problem)
  • Index(es):
    • Date
    • Thread