public function dcr() {
$query = $this->db->query("SELECT * FROM church_repo");
foreach ($query->result() as $row) {
$data = array('churchName' => $row->church_name,
'streetAddress' => $row->street_address,
'locationalState' => $row->locational_state,
'locationalZIP' => $row->locational_zip,
'locationalCountry' => $row->locational_country,
'locationalCity' => $row->locational_city,
'overseerAccountId' => $row->overseer_account_id,
'taxExemptionNumber' => $row->tax_exemption_number,
'accountStatus' => $row->status,
);
$this->load->view('admin-request', $data);
}
}在我的Html输出上面的PHP。同样在我的Html中,我有两个按钮,其id为'pass'和'fail'。当我有多行时,脚本正在执行的操作是在每个输出行中输出具有相同ID的两个按钮。这很好,因为它正在做它需要做的事情,但现在我无法识别输出的行。所以我需要能够匹配每个按钮设置与输出的Php。有任何想法吗?