Alright i have a database setup named NEWS. Tables in it are newstitle and news, newstitle is setup as varchar(255) and news is setup as text.
In my form, the newstitle is a TEXT box and the news is a TEXTAREA. Now when I type in let's say for newstitle "hey's" and for news "hey guy's" and submit it, when I go to view it on the index page it shows up like:
hey's
hey guy\'s
I was wondering how do I get the backslashes (\) to stop showing up when I type a word with an apostraphe, i know this may sound a bit confusing but i cant think of any easy way to explain it right now as its earlier in the morning and im tired lol...if anyone understands what i said here, please help
thanks!
Displaying text problem
[quote="jnjwebdev"]$text = stripslashes($text)]
TIP:
all manual about it is in http://lt.php.net/manual/en/function.nl2br.php
TIP:
Code: Select all
u can use $text= nl2br($text) to change
to \n to save in db

-
- Posts: 262
- Joined: Wed Jul 20, 2005 10:57 pm