#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    2
    Rep Power
    0
    When I retreive an entry from my database that contains an apostrohe and I print it using "printf("%s<br>n", $myrow["name"]);", php insterts a .

    (e.g. database contains "Charlet's" and php prints out "Charlet's")

    How do I correct this?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Posts
    669
    Rep Power
    14
    This should do the trick
    printf("%s<br>n", stripslashes($myrow["name"]));
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    2
    Rep Power
    0
    Worked like a charm. Thanks.

Similar Threads

  1. changing cursor....
    By DuncanH in forum HTML Programming
    Replies: 2
    Last Post: January 31st, 2009, 07:39 AM
  2. changing cursors for maps
    By gsoper in forum HTML Programming
    Replies: 1
    Last Post: February 8th, 2004, 06:34 AM
  3. Changing video resolution from 1280 X 1024 to 1024 X 768
    By linh in forum Visual Basic Programming
    Replies: 4
    Last Post: January 21st, 2004, 01:46 PM
  4. WHM account creation error messages on RH
    By borisbaloney in forum Linux Help
    Replies: 0
    Last Post: December 16th, 2003, 06:54 PM
  5. changing two images sequentially?
    By nat_walker68 in forum HTML Programming
    Replies: 0
    Last Post: September 2nd, 2003, 09:44 AM

IMN logo majestic logo threadwatch logo seochat tools logo