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

    Join Date
    Aug 2000
    Location
    Olympia
    Posts
    19
    Rep Power
    0
    Hey I have a question,

    When I try inserting the word You'll into a database it wont insert.

    But when I insert the word Youll it will.

    My question is how do I get the ' to insert into the database.

    Heres how I'm inserting..

    News<BR>
    <TEXTAREA cols=35 name="news" rows=8 wrap></textarea>

    $news = eregi_replace("'","'",$news);

    and the database type is set to text
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Posts
    669
    Rep Power
    15
    try $news = addslashes($news);

IMN logo majestic logo threadwatch logo seochat tools logo