add all files

This commit is contained in:
Rucus
2026-02-17 09:29:34 -06:00
parent b8c8d67c67
commit 782d203799
21925 changed files with 2433086 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
$serverName = "SQLSERVER";
$uid = "crw";
$pwd = "rp02751";
$connectionInfo = array( "UID"=>$uid, "PWD"=>$pwd,'ReturnDatesAsStrings'=> true, "CharacterSet" => 'utf-8', "Database"=>"TruckTracking" );
/* Connect using SQL Server Authentication. */
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn === false )
{
echo "Unable to connect.</br>";
die( print_r( sqlsrv_errors(), true));
}
$sql = "SELECT * FROM DumpHistory ORDER by ScanDate DESC";
$stmt = sqlsrv_query( $conn, $sql );
if( $stmt === false) {
die( print_r( sqlsrv_errors(), true) );
}
?>
<html>
<head>
<title>RFID Truck Log</title>
</head>
<body>
<table>
<thead>
<tr>
<th>Load Number</th>
<th>Vehicle ID</th>
<th>Dump Location</th>
<th>Scan Date</th>
<th>Net Weight</th>
<th>Crop Day</th>
</tr>
</thead>
<?php while ($array=sqlsrv_fetch_array($stmt, SQLSRV_FETCH_NUMERIC)) {
echo "<td>".$array['LoadNo']."</td>";
echo "<td>".$array['VehicleId']."</td>";
echo "<td>".$array['DumpLocation']."</td>";
echo "<td>".$array['ScanDate']."</td>";
echo "<td>".$array['NetWt']."</td>";
echo "<td>".$array['CropDay']."</td>";
} ?>
</table>
</body>