0) { $res = $db->exec_query('client_employees', ['*'], '', '', '', '', "clients_id = {$_GET['clients_id']}"); if ($res->num_rows > 0) { $return_data = ""; while ($row = $res->fetch_assoc()) { $return_data = $return_data . "{$row['record_id']} | {$row['client_employees_name']} | {$row['surname']} | {$row['i_doc_passport']} | {$row['occupation']}||"; } echo $return_data; } }