Stuff
public text v1 · immutableforeach ($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>";
}