?
Solved

how to have multiple line in php html table

Posted on 2008-10-08
3
Medium Priority
?
639 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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

801 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