?
Solved

how to have multiple line in php html table

Posted on 2008-10-08
3
Medium Priority
?
649 Views
Last Modified: 2012-05-05
I have the following code with dynamic field $liste
if $liste is not too long it is OK
if $liste is very long I have not all the records some go behind at the right.
How to have the html page with table multi lines?

<table class='tab_no_border' style='width:550px;margin-left:15px'><COL width=750 align='left'></COL><TR><TD class='td_titre_col' style='padding-left:5px;'>liste des costs</TD></TR><TR><TD class='td_cadre' style='padding-left:5px;'><? echo $liste; ?></TD></TR></TABLE>
0
Comment
Question by:davidgfi
  • 2
3 Comments
 
LVL 22

Assisted Solution

by:Ivo Stoykov
Ivo Stoykov earned 1000 total points
ID: 22667741
try this
0
 
LVL 22

Assisted Solution

by:Ivo Stoykov
Ivo Stoykov earned 1000 total points
ID: 22667744
forgot snippet ;-((
<TD class='td_cadre' style='padding-left:5px;WORD-BREAK:BREAK-ALL;'><? echo $liste; ?></TD>

Open in new window

0
 
LVL 1

Accepted Solution

by:
ShinyDarkStone earned 1000 total points
ID: 22667870
im thinking in a function, but i need to know if u want to "Wrap" the text.
the simple way its when you take out from the database and do the query, you should do something like this




while($davidgfi_query){
 
$liste = $liste + "<tr><td> . ".$value_of_davidgfi." . </td></tr>"
 
}

Open in new window

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month17 days, 6 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question