php
$db = nowy mysqli ("localhost", "xxxx", "xxxxxxxxxx", "xxxxx ");
jeżeli (mysqli_connect_errno ()) {
echo "Błąd: Móc baza danych. Zadawalać próba znowu opóźniony. ";
wyjście;
};
$result4=mysqli_query ($db, "WYBRANY work_order_uids, work_order_job_code_desc,
wo_surface_code_description, account_name
OD wo_table, wo_stats, acitve_sites_table, accounts_table, wo_surface_code, work_order_job_codes
DOKĄD wo_table.work_order_uids = wo_stats.work_order_uid
I wo_stats.active_sites_uid = acitve_sites_table.active_sites_uid
I acitve_sites_table.account_id = accounts_table.account_uid
I wo_table.surface_code = wo_surface_code.wo_surface_code_id
I wo_table.job_code = work_order_job_codes.wo_job_code_id
I wo_status_codes = (1) ");
jeżeli (! $result4)
{
$error = "Błąd wo_table dane! ";
zawierać ("error.html.php");
wyjście ();
}
podczas gdy ($row=mysqli_fetch_array ($result4))
{
$wo_tables [] =array ('work_order_uids'=>$row ["work_order_uids"], 'account_name'=>$row ["account_name"]
, 'work_order_job_code_desc'=>$row ["work_order_job_code_desc"], 'wo_surface_code_description'=>$row ["wo_surface_code_description"]);
};
//var_dump ($wo_tables);
? >
php foreach ($wo_tables jako $wo_table):? >
php var_dump ($wo_table); ? >
php endforeach;? >
|