# Limit text displayed

**URL:** https://forum.kirupa.com/t/limit-text-displayed/158780
**Category:** Uncategorized
**Created:** [August 11, 2005, 7:45pm UTC](https://forum.kirupa.com/t/limit-text-displayed/158780 "2005-08-11T19:45:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)
#### Post date: [August 11, 2005, 7:45pm UTC](https://forum.kirupa.com/t/limit-text-displayed/158780/1 "2005-08-11T19:45:10Z")

</div>

This might be more of a client-side html question but I’m using sqlserver and coldfusion in conjunction to thought I’d post my question here.

I have a simple little database that stores project information. One of the fields is for project description/status. The client will want to add stuff to this periodically over time. I am using sqlserver to create and store the tables and coldfusion to display information from queries on a webpage.

The client would like only the first say 5 lines of text to show, with one of those little “read more” hyperlinks that will pull up all of the text. I know I can use left(200) or whatever to pull out the first x amount of characters out of the text but what is the best way to handle the “read more” hyperlink?

Any thoughts welcome. Oh, and I don’t know any php or javascript so if you are going to suggest bits of those codes please give me the full thing. Thanks!

:hr:
