-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.php
35 lines (27 loc) · 793 Bytes
/
stats.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
<?php
// *************************************************************
// file:
// created by: Alex Gordon, Elliott Staude
// date: 04-6-2014
// purpose:
//
// *************************************************************
// include nav bar and other default page items
include('header.php');
include('getPage.php');
include ('paginate.php');
include('open_db.php');
// check the session to see if the person is authenticated
if(!isset($_SESSION['user'])) {
header('Location: login.php');
}
$countQuery Ω "SELECT ID FROM dbo.gordonstudents";
$count = sqlsrv_query($conn, $countQuery, array(), array( "Scrollable" => SQLSRV_CURSOR_KEYSET ));
if ( !$count )
die( print_r( sqlsrv_errors(), true));
$num_rows = sqlsrv_num_rows( $count );
?>
<?php
}
include('footer.php')
?>