note 21737 deleted from language.variables.variable by danbrown
| From: | danbrown@php.net | Date: | Wed, 24 Jun 2009 17:02:06 +0000 |
| Subject: | note 21737 deleted from language.variables.variable by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-157420@lists.php.net to get a copy of this message | ||
Note Submitter:
----
//to reference cells and place them in a table format
//for exmple cells named ref1_1, ref1_2, ref1_3, ref1_4, ref2_1 ... through ref4_4
print "<table border=\"0\"><tr><td valign=\"top\" >\n
";
for($i=1;$i<5;$i++)
{
for($h=1;$h<5;$h++)
{
$cellname = "ref$i"."_"."$h";
print ($a_row->{$cellname});
print "</td>";
if ($h==4) print "</tr><tr> \n";
print "<td valign=\"top\" > \n";
}
}
print "</td></tr></table>\n";