application/models/User.php
/*DOCU This function updates the user info and saves it to the database
		Owner:Philip */
DOCU This function updates the user info and saves it to the database
Owner:Philip
DOCU This function updates the user info and saves it to the database Owner : Philip
public function update_user($data) {
			$sql = "UPDATE users SET email = ?, first_name = ?, last_name = ?, user_level = ?
					WHERE users.id = ?";
			return $this->db->query($sql, array($data["email"], $data["first_name"],$data["last_name"], $data["user_level"], $data["id"]));
		}
public function update_user ( $ data ) { $ sql = " UPDATE users SET email = ?, first_name = ?, last_name = ?, user_level = ?
					WHERE users.id = ? " ; return $ this -> db -> query ( $ sql , array ( $ data [ " email " ] , $ data [ " first_name " ] , $ data [ " last_name " ] , $ data [ " user_level " ] , $ data [ " id " ] ) ) ; }
DOCU This function updates the user info and saves it to the database
Owner:Philip
DOCU This function updates the user info and saves it to the database Owner : Philip