$data) { $logs[$key] = $data; } // current data $data = $products[0]; $productid = $data['productid']; $productname = $data['productname']; $productnumber = $data['productnumber']; $catalognumber = $data['catalognumber']; $sitename = $data['sitename']; $productowner = $data['productowner']; if($data['createdate'] != '' ) { $createdate = date('Y-m-d', strtotime($data['createdate'])); } else { $createdate = ''; } if($data['locationstartdate'] != '' ) { $locationstartdate = date('Y-m-d', strtotime($data['locationstartdate'])); } else { $locationstartdate = ''; } if($data['locationenddate'] != '' ) { $locationenddate = date('Y-m-d', strtotime($data['locationenddate'])); } else { $locationenddate = ''; } $installationdate = $data['installationdate']; $warrantystartdate = $data['warrantystartdate']; $warrantyenddate = $data['warrantyenddate']; $productservicetext = $data['productservicetext']; $statuspart = $data['statuspart']; $remotetool = $data['remotetool']; $remoteid = $data['remoteid']; $remotepwd = $data['remotepwd']; ?>