Changes between Version 14 and Version 15 of Docs/825gen2/Dev/Networking/PHP


Ignore:
Timestamp:
02/29/24 11:36:52 (9 months ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/825gen2/Dev/Networking/PHP

    v14 v15  
    107107    padding: 0 15px;
    108108  }
     109  table td:nth-child(3) { text-align: left; }
    109110</style>
    110111</head>
     
    118119  $result = $conn->query($sql);
    119120  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>';
    121122    while($row = $result->fetch_assoc()) {
    122123      $tkt_num = $row['tkt_num'];
    123124      $datetime = $row['date'] . ' ' . $row['time'];
    124125          $veh = $row['truck'];
     126          $prod = $row['prod'];
     127          $cust = $row['cust'];
     128          $job = $row['job'];
    125129      $gross = $row['gross'];
    126130      $tare = $row['tare'];
    127131      $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>';
    129133      $imgfile = sprintf("v%06d_1.jpg", $tkt_num);
    130134      $img = 'images/' . $imgfile;