14 lines
349 B
PHP
14 lines
349 B
PHP
<?php
|
|
include __DIR__.'/../header.php';
|
|
include __DIR__.'/../db.php';
|
|
$tbl = $db->query('select name from tables where active = 1 limit 1 offset abs(random()) % max((select count(*) from tables), 1)')->fetchColumn();
|
|
?>
|
|
<h1>your random table</h1>
|
|
<p><a href="/">back</a></p>
|
|
<hr>
|
|
|
|
<strong><?=$tbl?></strong>
|
|
|
|
<?php
|
|
include __DIR__.'/../footer.php';
|