2 changed files with 63 additions and 21 deletions
@ -0,0 +1,36 @@ |
|||||
|
<?php |
||||
|
include "header.php"; |
||||
|
$sql = "SELECT |
||||
|
a.manager, |
||||
|
a2.name, |
||||
|
w.salesid, |
||||
|
a.name, |
||||
|
w.contractno, |
||||
|
w.facilityno, |
||||
|
w.real_arrival_date, |
||||
|
w.tryrun_end_date, |
||||
|
w.delivery_date |
||||
|
from wipwholestatus AS w |
||||
|
left join account AS a |
||||
|
ON w.salesid = a.accountid |
||||
|
left join account AS a2 |
||||
|
ON a2.accountid = a.manager |
||||
|
where w.status = '1' |
||||
|
ORDER BY `w`.`delivery_date` DESC;"; |
||||
|
|
||||
|
$wipwhole_array= mysqli_query($link, $sql); |
||||
|
// $T8_array = mysqli_fetch_all($T8_array, MYSQLI_ASSOC); |
||||
|
foreach ($wipwhole_array as $wip){ |
||||
|
// print_r($wip); |
||||
|
// echo "<br>"; |
||||
|
} |
||||
|
echo "<br>"; |
||||
|
// $sql_depid = "SELECT department_id, name from department"; |
||||
|
// $dept_query = mysqli_query($link, $sql_depid); |
||||
|
// $deptype = mysqli_fetch_all($dept_query, MYSQLI_ASSOC); |
||||
|
$sql_contract = "SELECT * FROM salOrderStagePay;"; |
||||
|
$contract = $conn->query($sql_contract); |
||||
|
foreach($contract as $cont){ |
||||
|
print_r($cont); |
||||
|
echo "<br>"; |
||||
|
} |
Loading…
Reference in new issue