All pastes #470217 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-04 04:24 UTC
rendered paste body
foreach ($records as $row)
{
	echo "<tr>";
	for ($i = 0; $i < count($keys) + 1; $i++)
	{
		if ($i = 0)
			echo "<th><a href=columns.php?table_name=" .                  $row[$keys[$i]] . ">" . $row[$keys[$i]] . "</a></th>";
		else
				
			echo "<th>" . $row[$keys[$i]] . "</th>";
	}
	echo "</tr>";
}