adamhhh Posted July 31, 2007 Share Posted July 31, 2007 bit stumped here, how do i return the first x amount of characters from a field in a mysql database? Quote Link to comment https://forums.phpfreaks.com/topic/62633-mysql-returning-first-200-characters/ Share on other sites More sharing options...
hostfreak Posted July 31, 2007 Share Posted July 31, 2007 mysql left() function; http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_left or php substr() function; http://php.net/substr Quote Link to comment https://forums.phpfreaks.com/topic/62633-mysql-returning-first-200-characters/#findComment-311748 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.