Posted by Frank de Bot on 08/05/05 13:15
Diana Castillo wrote:
>How can I with php detect when there is a carriage return at the end of the
>text field in a mysql table?
>
>
>
Something like this perhaps:
$res = mysql_query($query);
$row = mysql_fetch_object($row)
if (preg_match("/\r$/",$row->textfield) {
echo "Got CR";
} else {
echo "No CR at end";
}
Just an example to help you on the way.
Navigation:
[Reply to this message]
|