Solved

how to have multiple line in php html table

Posted on 2008-10-08
3
616 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 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now