SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    933
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Arrow Smarty question... how do you format like this?

    Hello

    can you give me example of outputting an array values that has a table format.

    For example the output should look like this below,

    ----------------------------------------------------------------------
    | ID | name | email |
    ----------------------------------------------------------------------
    | 01 | warren | test@mydomormantdomain.com |
    | 02 | joseph | contactjoseph32@yahoo.com.ph |
    | 03 | john | john_burhakonde@friendster.com |
    | 04 | ken | ken_japanoiwah532@hotmail.com |
    | 05 | george | george_sulimanto23@yahoo.com |
    ----------------------------------------------------------------------

    Can you show me a simple example that will output like this?

    Sorry for that ugly output alignment it did not follow my imagination properly

    Thanks in advance.

  2. #2
    Non-Member thewebhostingdir's Avatar
    Join Date
    Oct 2005
    Posts
    703
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which server side scripting do you use? PHP, ASP, ASP.NET?

    In general, you can have looping through the array and then nesting the array elements with <tr> and <td> to generate the table layout containing the array values.

  3. #3
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    933
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Arrow

    Quote Originally Posted by thewebhostingdir View Post
    Which server side scripting do you use? PHP, ASP, ASP.NET?

    In general, you can have looping through the array and then nesting the array elements with <tr> and <td> to generate the table layout containing the array values.
    php

  4. #4
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    933
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    anyone would like to share their simple sample please?

    How do i put the values of arrays in smarty, in nice table format?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •