";
        }
        $title             = $data[0];
        $description     = $data[1];
        $image             = $data[2];
        $html .= "
                   
        ";
        $c++;
       
        if ($c==3)
        {
            $html .= "";
            $c = 0;
        }
    } Any suggestions on a good way of doing this? 

Edited I came up with a solution of my own: http://community.livejournal.com/php/612044.html?thread=4427980#t4427980

Source: http://community.livejournal.com/php/612044.html

    Looping through data, creating table

    Date: 02/08/08 (PHP Community)    Keywords: php, html

    A client needs a table of data displayed as follows:



       
       
       


       
       
       


       
       
       



       
       
       


       
       
       


       
       
       

    Title 1Title 2Title 3
    image 1image 2image 3
    Desc 1Desc 2Desc 3
    Title 4Title 5Title 6
    image 4image 5image 6
    Desc 4Desc 5Desc 6


    The data is stored in an array, so I am looping through results.  How do I create a table with this exact layout?  The key is the title, image and desc need to be level on each row.  The client did not like everything put in one cell, since the images & titles were different sizes & lengths. 

    I was using this

        foreach ($array_clips as $clip => $data)
        {
            if ($c==0)
            {
                $html .= "

               

$title
               

      
               

$description
               

« exec() question || low-cost logging? »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home