Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (40 sloc) 1.099 kB
<?php include("top.tpl"); ?>
<h3>EXPLAIN result</h3>
<p>
<?= format_query($query) ?>
</p>
<? if (count($rows)) { ?>
<table>
<tr>
<? foreach ($rows[0] as $key => $value): ?>
<th><?= $key?></th>
<? endforeach; ?>
</tr>
<? foreach ($rows as $row): ?>
<tr <? if ($counter++ % 2): ?>class="alt"<? endif ?>>
<? foreach ($row as $key => $value): ?>
<? if ($key == "table"): ?><td><a href="table.php?hours=<?= $hours ?>&table=<?= $value ?>&host=<?= $host ?>"><?= $value ?></a></td>
<? else: ?>
<td><?= $value ?></td>
<? endif ?>
<? endforeach; ?>
</tr>
<? endforeach; ?>
</table>
<? } ?>
<? if (count($tables)) { ?>
<h3>Tables</h3>
<table>
<tr>
<th>Table</th>
<th>CREATE TABLE</th>
</tr>
<? foreach ($tables as $table => $info): ?>
<tr <? if ($table_counter++ % 2): ?>class="alt"<? endif ?>>
<td><?= $table ?></td>
<td><?= nl2br($info['Create Table']) ?></td>
</tr>
<? endforeach; ?>
</table>
<? } ?>
<?php include("bottom.tpl"); ?>
Jump to Line
Something went wrong with that request. Please try again.