This is table, who is generated when user pick some values in select boxes.
How to save in session this generated table, and appear every time when current user is login.
<table border="0" class="table table-hover table-striped" name="raspored" id="raspored" class="tablesorter">
<thead>
<tr COLSPAN=2 BGCOLOR="#6D8FFF">
<th>ИД</th>
<th>Предмет</th>
<th>Професор</th>
<th>Ден</th>
<th>Час</th>
<th>Просторија</th>
<th>Тип</th>
</tr>
</thead>
<?php
foreach ($_POST['predmet'] as $predmet) {
$_SESSION['predmet'] = $_POST['predmet'];
$rows = get_info($db, $predmet);
if (count($rows)){
foreach ($rows as $row) {
$_SESSION['row'] = $rows;
echo "<tr>" .
"<td>" . $row["ID"] . "</td>" .
"<td>" . $row["predmet"] . "</td>" .
"<td>" . $row["profesor"] . "</td>" .
"<td>" . $row["den"] . "</td>" .
"<td>" . $row["chas"] . "</td>" .
"<td>" . $row["prostorija"] . "</td>" .
"<td>" . $row["tip"] . "</td>" .
"</tr>";
}
}
}
?>
</table>