-
Notifications
You must be signed in to change notification settings - Fork 0
/
index1.php
41 lines (35 loc) · 1 KB
/
index1.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
// git remote add origin https://github.com/roundtopdog/softApp.git
// git push -u origin master
require_once('model/database.php');
// get room ID
if( !isset( $room_id )){
$room_id = filter_input(INPUT_GET, 'room_id', FILTER_VALIDATE_INT );
if( $room_id == null || $room_id == false ){
$room_id = 1;
}
}
// get name for selected room
$queryRoom = 'select * from rooms where roomID = 7';
$statement1 = $db->prepare($queryRoom);
$statement1->bindValue(':room_id', $room_id);
$statement1->execute();
$room = $statement1->fetch();
$room_name = $room['roomName'];
$statement1->closeCursor();
$query = 'select * from rooms order by'
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SoftApp</title>
<link rel="stylesheet" href="main.css">
<script src="jquery-1.11.1.js" type="text/javascript"></script>
<script src="softApp.js" type="text/javascript"></script>
</head>
<body>
<div id="one"><?php echo $room_name ; ?></div>
</body>
</html>