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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.