MARC
Mailing list ARChives
FOLDOC
Computing Dictionary
PHP TABLE Tips
Title: PHP TABLE Tips
Contributor: Randall Goguen (aka Ranman)
Last Update: Tuesday July 18 21:47 EDT 2000
<html>
<body bgcolor="#000000" text="#FFFFFF" link="#009AFF"
vlink="#CC9AFF" alink="#009AFF" marginwidth="0"
marginheight="0" leftmargin="0" rightmargin="0"
topmargin="0">
<?
$x = 'bgcolor="#990099" align="center" valign="middle" border="0"';
$y = 'bgcolor="#CC33FF" align="left" valign="middle" border="0"';
$tr = 11; ?>
<table width="100%" cellpadding="0" cellspacing="0"
align="center" valign="top" border="0">
<?
for ($i=1; $i<$tr; $i++) {
$tr_spec = ($i % 2) ? $x : $y; ?>
<tr <? echo $tr_spec; ?>><td>
<? if($i % 2) { ?>
<font color="#FFFFFF" face="times" size="3">
Table Row Specification</FONT><? }
else { ?>
<font color="#000000" face="helvetica" size="2"><b>
<? echo $tr_spec; } ?></b></font>
</td></tr><? } ?>
</table>
</body>
</html>
Demo!
Anyone who wishes to make additions or changes to this
PHP Tip email them to webmaster@linuxguruz.org
This document is Copyright (c) 1999, 2000 by LinuxGuruz
Return to the LinuxGuruz PHP Tutorials Page Return to the LinuxGuruz Main Page
www.PHP.net Search Engine
Restrict the search to:
Whole site
Online documentation
PHP 3.0 Mailing List
PHP Developers' List
PHP Documentation List
PHPLIB Mailing List
PHPLIB Developers' List
Site PHP 3.0 source code
Copyright © 1999, 2000 The PHP Development Team.
Return to the LinuxGuruz PHP Tutorials Page
Return to the LinuxGuruz Main Page