Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Kunyare nasa Controller ka na
- public function save() {
- $userId = $this->input->post("user_id");
- $query = $this->db->from("users")->where("user_id", (int) $userId)->get();
- $user = $query->row_array();
- if (! empty($user)) {
- $email = $user["email_address"]; // Replace with email column "email_address"
- // Continue actions
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement