Jump to content

[SOLVED] Truncated Text Query


monkeytooth

Recommended Posts

Alright I have this database for a friend, which is a simple blog/journal type thing, where on the main page it pulls from the DB and seperates each entry into a block. Which works fine for the most part, however what I want to do is truncate the message body down a bit per entry, as this kid can be long winded at times. Right now the way its set up is that when the main page loads and all the blocks get displayed they show everything...

 

I just want to break the main message body down to 100 charicters/words or less then put a read more link, where the full size can be viewed from there.. Which all that I can do fine its just getting the message to break down on the front page thats posing tricky for me at the moment. Mind you theres already a handful of messages so if its possible to just go based on existing that would be great. any ideas suggestions help?

Link to comment
https://forums.phpfreaks.com/topic/105326-solved-truncated-text-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.