Re: Re: Creating a Table to line query results in php?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How can I create a table...or even something similar...to line information up?


echo "<table>";
echo "<tr><th>Header1</th><th>Header2</th><th>Header N</th></tr>";

while ($data = mysql_fetch_array($res))
{
$idfield = $data['IDFIELD'];
$name = $data['Name'];
$effect = $data['Effect'];
$category = $data['Category'];
$origin = $data['Origin'];
$image = $data['Image'];

echo "<img src=\"image/$image\">, $name, $effect, $category, $origin<br>";

echo "<tr><td><img src=\"image/$image/\"></td><td>$name</td><td>$effect</td><td>$category</td><td>$origin</td></tr>";

}
echo "</table>";

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux