Advertisement
Guest User

Rod

a guest
Jan 28th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2.  
  3. // Kunyare nasa Controller ka na
  4.  
  5. public function save() {
  6.    
  7.     $userId = $this->input->post("user_id");
  8.     $query = $this->db->from("users")->where("user_id", (int) $userId)->get();
  9.     $user = $query->row_array();
  10.    
  11.     if (! empty($user)) {
  12.         $email = $user["email_address"]; // Replace with email column "email_address"
  13.         // Continue actions
  14.     }
  15.    
  16.    
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement