Hi,
Anybody can help to split the data from a field of database table using php? I need to display a specific number of words from a large text area (from a record) using php. How can display it?
Expect help from anybody..
Thanks
Need help for displaying records from a database
Moderator: General Moderators
-
vcodeinfotec
- Forum Newbie
- Posts: 10
- Joined: Sat Jul 12, 2008 2:08 am
Re: Need help for displaying records from a database
$words = explode ( " " , $yourText );
array_splice( $words , 37 );
// $words is now an array with the first 37 words
print( implode( " ", $words ) );
array_splice( $words , 37 );
// $words is now an array with the first 37 words
print( implode( " ", $words ) );
-
vcodeinfotec
- Forum Newbie
- Posts: 10
- Joined: Sat Jul 12, 2008 2:08 am
Re: Need help for displaying records from a database
Thanks
. It works well..