php-db | 2004071
Date: 07/13/04
- Next message: Pablo M. Rivas: "Re: [PHP-DB] Multiple SELECT"
- Previous message: Ed Lazor: "RE: [PHP-DB] Security Issues"
- In reply to: Chris Payne: "[PHP-DB] Column help needed (Table)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Pablo M. Rivas: "Re: [PHP-DB] Multiple SELECT"
- Previous message: Ed Lazor: "RE: [PHP-DB] Security Issues"
- In reply to: Chris Payne: "[PHP-DB] Column help needed (Table)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

