-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.php
24 lines (18 loc) · 676 Bytes
/
data.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
require('config/connect.php');
require('templates/header.php');
$query = 'SELECT * FROM Kurser';
$result = mysql_query($query);
echo '<div id="content">';
echo '<table>';
echo '<tr><th>Namn</th><th>U</th><th>3</th><th>4</th><th>5</th></tr>';
while($row = mysql_fetch_array($result))
{
echo '<tr><td>' . $row['Namn'] . '</td><td>' . $row['U'] . '</td><td>'
. $row['3'] . '</td><td>' . $row['4'] . '</td><td>' . $row['5'] . '</td></tr>';
}
echo '</table>';
echo '</div>';
echo '<div id="sidebar">uis aute irure dolor in reprehenderit in voluptate velit esse
ciaecat cupidatat non anim id est laborum. </div>';
require('templates/footer.php');