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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to