Hello Chris,
   easy as this?

   <?php
    $odd=1;
    while ($row=mysql_fetch_row($Res)) {
          if ($odd) {
             echo "\n<tr>";
             $odd=0;
          } else $odd=1;
          echo "<td>" . $row[0] . "</td>";
    }

   ?>


CP> Hi there everyone,

 

CP> I need my MySQL query to be displayed in a table, which is no problem, but I
CP> only want 2 results per row to be displayed - so if I had 10 returned
CP> results from my Database, it would display 2 per column on 5 rows.  How can
CP> I do this dynamically?

 

CP> Any help would be really appreciated.

 

CP> Thanks

 

CP> Chris

 




-- 
Best regards,
 Pablo

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to