prepare('SELECT id, x, y, width, height, occupant FROM rects');
$sth->execute();
$sth->bind_result($id, $x, $y, $w, $h, $occupant);
while ($sth->fetch()) {
echo '' . PHP_EOL;
}
$sth->close();
$sth = $dbh->prepare('SELECT id, pointset, occupant FROM polys');
$sth->execute();
$sth->bind_result($id, $pointset, $occupant);
while ($sth->fetch()) {
echo '' . PHP_EOL;
}
?>