deathgame3 Posted March 19, 2009 Share Posted March 19, 2009 hi, ok im not really good wid php or mysql, just a beginner thts why i need help, currently i have this php line: <?php echo $this->items[$i]->description; ?> which gets the full text frm the description column for each item, NOW wht i want to do is i want to limit the return text to only 200 characters tht means i only want the first 200 characters frm the DESCRIPTION columm to show, so can u tell me wht changes i will have to make to the above statement for tht to happen? thnx i appreciate the help Link to comment https://forums.phpfreaks.com/topic/150227-limit-characters-return-from-mysql-column/ Share on other sites More sharing options...
corbin Posted March 19, 2009 Share Posted March 19, 2009 substr Link to comment https://forums.phpfreaks.com/topic/150227-limit-characters-return-from-mysql-column/#findComment-788967 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.