forked from kkaiser1952/NCM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetOpenNets.php
30 lines (22 loc) · 995 Bytes
/
getOpenNets.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
<?php
require_once "dbConnectDtls.php";
/* This query pulls the list of all open nets */
echo("<h3>The following nets are currently open;</h3>");
echo("<ul>");
$sql = $db_found->prepare("SELECT netID, activity, logdate, frequency, netcall, GROUP_CONCAT(DISTINCT netID)
FROM NetLog
WHERE netID <> '0'
and logclosedtime IS NULL
and netcall <> 'TE0ST'
and logdate >= (NOW() - INTERVAL 50 DAY)
GROUP BY netID
ORDER BY netID ?");
$sql->EXECUTE(array("desc"));
$user = $sql->fetchAll();
if ($user !== false) {
echo "<li>Net# $ON[netID] $ON[netcall] Opened: $ON[logdate]</li>" ;
} else {
echo "<li>There are no open nets</li>";}
}
echo("</ul>");
?>