jay_bo Posted March 6, 2010 Share Posted March 6, 2010 Is there anyway that i could possibly limit the amount of characters that this code will display when it is called in. echo '.$row["description"].'; Quote Link to comment https://forums.phpfreaks.com/topic/194329-how-to-limit-an-my-sql-output/ Share on other sites More sharing options...
wildteen88 Posted March 6, 2010 Share Posted March 6, 2010 you can use substr, for example to only show the first 100 characters use echo substr($row["description"], 0, 100); Quote Link to comment https://forums.phpfreaks.com/topic/194329-how-to-limit-an-my-sql-output/#findComment-1022280 Share on other sites More sharing options...
jay_bo Posted March 6, 2010 Author Share Posted March 6, 2010 Thank you very much. Quote Link to comment https://forums.phpfreaks.com/topic/194329-how-to-limit-an-my-sql-output/#findComment-1022287 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.