By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,417 Members | 1,856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,417 IT Pros & Developers. It's quick & easy.

Echo NOT displaying long text read in from a database

P: 1
Hi everyone


I am re-writing a website which was created in coldfusion. All the data is stored in MS SQL tables. The contents are long, some of them are over 8000 chars in a field. You migh be saying that Ms SQL can not store more than 8000 characters in a field, but in my case, it does.

The Problem is when i read the data from the table and print it using "echo" or "print" etc, it doesnt display the full text. So, if the text is 10,000 chars, it displays like 5000 chars only. This is my problem. I have checked all sql query and its perfect.

Echo can print text no matter how long it is, BUT when i read the data from a table, it doesnt display all of it.

In coldfusion, the full text is displayed but not in PHP. The text is html like <p> etc. it works fine in coldfusion.

Please Help
.....if you know the answer, please mail me at <email removed> too. Thanks in advance
Sep 24 '07 #1
Share this Question
Share on Google+
2 Replies

Expert 5K+
P: 5,058
Hi imran. Welcome to The Scripts!

I have removed the email address from your post. Posting email addresses is not allowed in the public forums.
Please read the Posting Guidelines before posting.

As to your problem... Could you show us the code you are using?
Sep 24 '07 #2

P: 64
why would you store full HTML in a database? sounds dangerous...
Sep 25 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.