Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > PHP
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 06-25-2007, 08:35 AM   #1 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
Table Data New Line

Howdy,

I currently have a column in a table that contains comments, how do I display the comments on a new line after so many characters, until all content has been displayed?

Example: - Instead of:

This is a comment. This is a comment. This is a comment. This is a comment. This is a comment. This is a comment. This is a comment. This is a comment. This is a comment.

Example: - Can this be done

This is a comment. This is a comment.
This is a comment. This is a comment.
This is a comment.

Many Thanks,
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote
Old 06-25-2007, 09:24 AM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
DJMaze is on a distinguished road
bad idea, ever heard of screen sizes?
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 06-25-2007, 11:39 AM   #3 (permalink)
Salchester
Salchester
 
Salchester's Avatar
 
Join Date: Jul 2005
Location: In a house
Posts: 230
Salchester is an unknown quantity at this point
Table Data New Line

DJMaze,

Yes. Never mind, cheers for the advice, but i'm going to tackle it through CSS, as resize the element the comments data in contained in will cause the text to word wrap, depending on the screen size.

Many Thanks,
__________________
Many Thanks, in advance!

Salchester.
The Future Is Here - Are You Ready?
Salchester is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Table Data into Array Salchester PHP 33 06-20-2007 07:26 AM
Table data from db as new form input tomycon PHP 2 03-03-2006 05:26 AM
Need help optimizing a query Belisarius Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 3 12-23-2005 06:33 AM
Table Advise Admin SQL 0 02-24-2003 02:01 PM
cgi script Henry PHP 25 12-30-2002 06:54 AM


All times are GMT -8. The time now is 04:54 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle