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"].'; 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); 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. 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
Archived
This topic is now archived and is closed to further replies.