Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function Register()
- {
- $nmtoko = $this->input->post('nmtoko');
- $password = $this->input->post('nmtoko');
- $error = FALSE;
- $error_message = FALSE;
- $url = "";
- $ceknors = $this->db->get_where('kjnt_outlet', array('NORS' => $this->input->post('nors')));
- if($ceknors->num_rows() > 0)
- {
- $nors = $this->input->post('nors');
- }else
- {
- $error = $error_message = "NO RESELLER TIDAK ADA";
- }
- $cekdigiposid = $this->db->get_where('kjnt_outlet', array('DIGIPOS_ID' => $this->input->post('digiposid')));
- if ($cekdigiposid > 0)
- {
- $digiposid = $this->input->post('digiposid');
- }else
- {
- $error = $error_message = "DIGIPOS ID TIDAK ADA";
- }
- $result = array(
- 'error' => $error === FALSE ? TRUE : FALSE,
- 'error_message' => $error_message
- );
- echo json_encode($result);
- }
Advertisement
Add Comment
Please, Sign In to add comment