CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: display data

  1. #1
    Join Date
    Aug 2005
    Posts
    43

    display data

    How to display more than one data in a cell?

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    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.

  3. #3
    Join Date
    Aug 2005
    Posts
    43

    Thumbs up Re: display data

    Quote 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
    ====================

  4. #4
    Join Date
    Sep 2006
    Posts
    28

    Re: display data

    Quote 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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)