Solved

how to have multiple line in php html table

Posted on 2008-10-08
3
629 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 250 total points
ID: 22667741
try this
0
 
LVL 22

Assisted Solution

by:Ivo Stoykov
Ivo Stoykov earned 250 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 250 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

756 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