Changes between Version 14 and Version 15 of Docs/825gen2/Dev/Networking/PHP
- Timestamp:
- 02/29/24 11:36:52 (9 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/Networking/PHP
v14 v15 107 107 padding: 0 15px; 108 108 } 109 table td:nth-child(3) { text-align: left; } 109 110 </style> 110 111 </head> … … 118 119 $result = $conn->query($sql); 119 120 if($result->num_rows > 0) { 120 echo '<table><tr><th>Tran Num</th><th>date/time</th><th>Vehicle< /th><th>Gross Wt</th><th>Tare Wt</th><th>Net Wt</th><th>Image</th><th>First pass</th></tr>';121 echo '<table><tr><th>Tran Num</th><th>date/time</th><th>Vehicle<br/>Product<br/>Customer</th><th>Gross Wt</th><th>Tare Wt</th><th>Net Wt</th><th>Image</th><th>First pass</th></tr>'; 121 122 while($row = $result->fetch_assoc()) { 122 123 $tkt_num = $row['tkt_num']; 123 124 $datetime = $row['date'] . ' ' . $row['time']; 124 125 $veh = $row['truck']; 126 $prod = $row['prod']; 127 $cust = $row['cust']; 128 $job = $row['job']; 125 129 $gross = $row['gross']; 126 130 $tare = $row['tare']; 127 131 $net = $row['net']; 128 echo '<tr><td>' . $tkt_num . '</td><td>' . $datetime . '</td><td>' . $veh . '< /td><td>' . $gross . '</td><td>' . $tare . '</td><td>'. $net . '</td>';132 echo '<tr><td>' . $tkt_num . '</td><td>' . $datetime . '</td><td>' . $veh . '<br/>' . $prod . '<br/>' . $cust . '</td><td>' . $gross . '</td><td>' . $tare . '</td><td>'. $net . '</td>'; 129 133 $imgfile = sprintf("v%06d_1.jpg", $tkt_num); 130 134 $img = 'images/' . $imgfile;