473,659 Members | 3,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Echo NOT displaying long text read in from a database

1 New Member
Hi everyone

Problem

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
2 2580
Atli
5,058 Recognized Expert Expert
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
karlectomy
64 New Member
why would you store full HTML in a database? sounds dangerous...
Sep 25 '07 #3

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

Similar topics

4
5175
by: entoone | last post by:
I have a form that has a text box, i.e. text area that takes 200 characters max. When I use my update script and it brings up the information in the database, it displays as a single line. How can I keep the same format of a box, instead of single line when viewing the database data for updating? This is how I'm calling the information into the box <tr>
3
3987
by: Xenophobe | last post by:
I read a short thread at php.net regarding the use of ECHO. I have an HTML form with PHP variables to define each input value (if any.) For example: <input type='text' name='firstname' value='<?php echo $FirstName; ?>'> I'm wondering if it makes any sense (performance and code-efficiency wise) to do as follows:
11
5202
by: Neil | last post by:
I need to temporarily remove the recordset from my form while I run some queries (have locking problems). So I turned Echo off before removing the recordset to avoid getting #Name? in the bound controls. However, even though I turned Echo off, I'm still getting #Name? until I reset the recordset. Here's the code I'm using: DoCmd.Hourglass True Application.Echo False Me.RecordSource = "" <run queries here>
0
1724
by: Fronky | last post by:
Hope someone can help. I am still learning, so no laughing please. I am displaying records from a database using Response.Write(""); instead of the usual datagrid method. I am doing it this way to achieve the result I require. However. Since I have added a button to the screen, and have had to include the "object sender, System.EventArgs e", the Response.Write code has been appearing within the Documents_Table(null,null); tag on the...
6
3880
by: zoneal | last post by:
Size of text file to read and display can be larger than 10MB. Since I must ignore certain input text lines the code I'm using is: FileOpen(1, OpenFileDialog1.FileName, OpenMode.Input) 'Read text file and load into LineOfText Do Until EOF(1) 'read lines from file LineOfText = LineInput(1)
4
3423
by: weirdstuff | last post by:
Hi. I have this simple code: =========================================== ->Database query here (.. some code) $row=mysql_fetch_array($res); (...)
1
2689
by: rascalking | last post by:
Hello, So I've read many forums that explained how to get an image out of SQL Server database and display it. I used an alternate .aspx page to retrieve the image and write it back as binary which everyone on many sites said to do. The problem is its not working. My exact situation is that I am creating News Articles based on news entries which are either text or pictures. I want to display a picture in the datagrid if there is one....
0
962
by: suprodeep | last post by:
have a page for admin(admin.aspx). This would enter product name, image, category name and and long description in a formatted manner. The prod name, image, category name can be inputted to database. However for long description i am using an html editor downloaded from net called cutesoft. Then i use server.htmlencode for entering the text inside the editor into the database (sql server 2000). This gets saved in the database. But plz send...
35
1949
by: hdsalbki | last post by:
hi everyone, I have below a small program to echo back what character the user types. It's working OK but prints a extra prompt between every character. what can I do? I'm new in C and my book is very difficult... thanks for any help. #include<stdio.h> main()
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8337
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8748
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8628
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7359
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.