Page 1 of 1

Displaying text problem

Posted: Mon Jan 24, 2005 1:23 am
by xuehen
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!

Posted: Sun Mar 06, 2005 3:40 pm
by tanaka
Post the code so we can see what is going on with it. :wink:

Posted: Tue Jul 26, 2005 9:29 am
by jnjwebdev
$text = stripslashes($text);

Posted: Wed Jul 27, 2005 8:37 pm
by Lixas
[quote="jnjwebdev"]$text = stripslashes($text)]
TIP:

Code: Select all

u can use $text= nl2br($text) to change 
 to \n to save in db
all manual about it is in http://lt.php.net/manual/en/function.nl2br.php

Posted: Wed Aug 03, 2005 7:27 pm
by bangbanger
im going to be putting a news script on my forum i think. anyone know where i can get the script?

Posted: Thu Aug 04, 2005 8:48 am
by jnjwebdev
hotscripts gas quite a few News scripts under PHP>Scripts and Programs

Posted: Thu Aug 04, 2005 7:15 pm
by Lixas
bangbanger wrote:im going to be putting a news script on my forum i think. anyone know where i can get the script?
Read a ltl bellow, and u find it, i believe in u :D

Posted: Thu Aug 25, 2005 7:05 am
by toychoq
can we use our own fonts which are very advanced ones