Welcome Back
We are currently displaying your last 50 loads in the table below. Please report any errors you encounter or questions that you may have to Corey at LASUCA. He can be reached at 394-3785 Ext 244. Thank you for any feedback that you may have.
Reports   Load Data
You have loads in today.
$uid, "PWD"=>$pwd,'ReturnDatesAsStrings'=> true, "CharacterSet" => 'utf-8', "Database"=>"SugarCaneScale" ); /* Connect using SQL Server Authentication. */ $conn = sqlsrv_connect( $serverName, $connectionInfo); if( $conn === false ) { echo "Unable to connect."; die( print_r( sqlsrv_errors(), true)); } $sql = "SELECT TOP 50 VehicleId_Fk, LoadId_Pk, CropDay, TractId_Fk, TareWt, GrossWt, Tons, FarmerId_Fk, ScaleWt, CONVERT(varchar, DateOut, 100) [TIME], SplitPercent, Parked FROM LoadData WHERE FarmerId_Fk LIKE 1402 ORDER by LoadId_Pk DESC"; $stmt = sqlsrv_query( $conn, $sql ); if( $stmt === false) { die( print_r( sqlsrv_errors(), true) ); } ?>
| Load No | Vehicle | Tract | Tons | Tare | Gross | P | Time Out | ".$row['LoadId_Pk']." | "; echo"".$row['VehicleId_Fk']." | "; echo"".$row['TractId_Fk']." | "; echo"".$row['Tons']." | "; echo"".$row['TareWt']." | "; echo"".$row['GrossWt']." | "; if ($row['ScaleWt'] > 100000) { echo"".($row['ScaleWt'] - $row['GrossWt'])." | "; } else { echo"". 0 ." | "; } if ($Parked == True) echo"Yes | "; if ($Parked == False) echo"No | "; echo"".$row['TIME']." | "; echo ""; } /* Free statement and connection resources. */ sqlsrv_free_stmt( $stmt); sqlsrv_close( $conn); ?>
|---|