prepare("SELECT id, name FROM time_sequences ORDER BY name ASC");
$sql->execute();
while($row=$sql->fetch(PDO::FETCH_ASSOC)){
echo "
";
echo "
".$row['id']."
";
echo "
".$row['name']."
";
echo "
";
echo "";
echo "
";
echo "
";
}
?>
prepare("SELECT tb.id, tb.name, ts.name AS time_sequence FROM time_blocks AS tb INNER JOIN time_sequences AS ts ON (ts.id=tb.sequence) ORDER BY ts.name ASC, tb.name ASC");
$sql->execute();
while($row=$sql->fetch(PDO::FETCH_ASSOC)){
echo "