What's the best way to implement a html table in PHP?
There's this: http://www.mamasam.com/index3.html
but i can't find where to get it (they give a reference, http://cvs.php.net, but i don't see it there)
table
Moderator: General Moderators
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
PHP just processes things. You can easily echo out tables the same way you'd just write them, since you're echoing out the HTML for the browser to read.
Code: Select all
<?PHP
echo <<<EOT
<table width="300" height="200">
<tr>
<td valign="top">row1 - col1</td>
<td valign="top">row1 - col2</td>
</tr>
<tr>
<td valign="top">row2 - col1</td>
<td valign="top">row2 - col2</td>
</tr>
</table>
EOT;
?>-
allelopath
- Forum Commoner
- Posts: 34
- Joined: Tue Mar 16, 2004 5:21 am