not sure i understand you. you want to list the tables from a database and have checkboxes next to each table? if so then do a SHOW TABLES query:
<form action="" method="POST">
tables:<br>
<?php
$result = mysql_query('SHOW TABLES');
while ($row = mysql_fetch_row($result))
{
echo '<input type="checkbox" name="tables[]" value="' . $row[0] . '">' . $row[0] . '<br>';
}
?>
<input type="submit" name="submit" value="submit">
</form>
then use $_POST['tables'] to form what ever specific query you want.