• 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
MySQL Escaped String
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MySQL Escaped String


  • Subject: MySQL Escaped String
  • From: Robin Hermann <email@hidden>
  • Date: Tue, 11 Jan 2005 08:42:56 +0100

Hi List,

I'm new to the list and a newbie to Cocoa.
Probably an easy one, but couldn't find it on the web: I need een escaped string for MySQL

I tried this:
<x-tad-bigger>
NSMutableString *dataField = [NSMutableString stringWithCapacity:10];
[dataField setString: [dataRecord objectForKey:corrField]];
[dataField replaceOccurrencesOfString:@"'" withString:@"\'" options:NSLiteralSearch range:NSMakeRange(0, [dataField length]) ];</x-tad-bigger>

But that doesn't work. How should I do it?

Robin Hermann
 _______________________________________________
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: MySQL Escaped String
      • From: Joakim Danielson <email@hidden>
  • Prev by Date: KeyPath retrieval
  • Next by Date: Re: Dynamically adding tabs during runtime?
  • Previous by thread: Re: KeyPath retrieval
  • Next by thread: Re: MySQL Escaped String
  • Index(es):
    • Date
    • Thread