Textarea into DB the correct way
Posted: Tue Aug 29, 2006 9:17 am
Hi All,
I'm using the following code to enter text into a DB.
It is sometimes dropping words or adding line breaks.
Is there a better, more effiecient way to do this?
ta, Will
I'm using the following code to enter text into a DB.
It is sometimes dropping words or adding line breaks.
Is there a better, more effiecient way to do this?
Code: Select all
$otherDetail = ereg_replace("[^[:space:]a-zA-Z0-9*_.-]", "", $otherDetail);
$otherDetail = ereg_replace("[ \t\r\n]+", " ", $otherDetail);