getAll($sql); for ($x=0; $xgetRow($accountsql); $account[$x]['customerid']= $customerid; $account[$x]['name']= $accountinfo['name']; $account[$x]['tel']= $accountinfo['tel']; $account[$x]['address']= $accountinfo['address']; $account[$x]['repairerid']= $accountinfo['repairerid']; } for ($x=0; $xgetRow($accountsql1); $account[$x]['repairername']= $accountinfo1['name']; $account[$x]['repairertel']= $accountinfo1['tel']; } echo json_encode($account); } }catch (Exception $e) { die($e->getMessage()); } ?>