limit on displaying a LONGTEXT filed from MySQL database

From: Date: Mon, 23 Jun 2003 00:41:28 +0000
Subject: limit on displaying a LONGTEXT filed from MySQL database
Groups: php.general 
Request: Send a blank email to php-general+get-152462@lists.php.net to get a copy of this message
Hi, How can I start searching for the first space in a string while starting at say the 150th character? I'm trying to display the first 150 characters of an article that is stored in a LONGTEXT filed of a MYSQL database, and should the 150th character be inside a word, I would want to finish displaying that word. For example supose the 150th character is the v in the word "privileges" I would want to finish displaying the word and end with "privileges" rather then ending with"priv" thanks

« previous php.general (#152462) next »