|
-
October 15th, 2006, 10:36 PM
#1
display data
How to display more than one data in a cell?
-
October 15th, 2006, 11:26 PM
#2
Re: display data
You must be much more specific than that. What data? What cell? How do you get this data? How do you create the cell?
I would assume you are building a HTML table with data from a database. What language are you using?
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
October 16th, 2006, 12:00 AM
#3
Re: display data
 Originally Posted by peejavery
You must be much more specific than that. What data? What cell? How do you get this data? How do you create the cell?
I would assume you are building a HTML table with data from a database. What language are you using?
sorry, my mistake. Im using php. I need to fetch data from database and then display it in a table. This data are displayed according to a specific date and every specific date will hold a cell in the table. so if this specific contains more than one data, I need to display it all inside that cell.
I need to do something like this:
====================
DATE | DATA | DESCRIPTION
====================
1 | Comp | Computer
| Prnt | Printer
------------------------------------
2 | Rb | Rubber
| Clip | Clip
| Ppr | Paper
-----------------------------------
3 | Prnt | Printer
====================
-
October 16th, 2006, 03:00 AM
#4
Re: display data
 Originally Posted by yatt
sorry, my mistake. Im using php. I need to fetch data from database and then display it in a table. This data are displayed according to a specific date and every specific date will hold a cell in the table. so if this specific contains more than one data, I need to display it all inside that cell.
I need to do something like this:
====================
DATE | DATA | DESCRIPTION
====================
1 | Comp | Computer
| Prnt | Printer
------------------------------------
2 | Rb | Rubber
| Clip | Clip
| Ppr | Paper
-----------------------------------
3 | Prnt | Printer
====================
Code:
<table>
<tr>
<td>Date</td>
<td>Data</td>
<td>Description</td>
</tr>
<tr>
<td>1</td>
<td>Comp<br />Prnt</td>
<td>Computer<br />Printer</td>
</tr>
</table>
If this is what you mean, you need to parse each row and if there is multiple data or descriptions, just add a "<br />" to go to the next line.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|