application/models/Message.php
/*DOCU Function to save a user message. Owner:Philip*/
DOCU Function to save a user message. Owner:Philip
DOCU Function to save a user message . Owner : Philip
public function save_message($data) {
			$sql = "INSERT INTO messages (user_id, page_id, message)
					VALUES (?,?,?)";
			return $this->db->query($sql, array($data["user_id"],$data["page_id"] ,$data["message"]));
		}
public function save_message ( $ data ) { $ sql = " INSERT INTO messages (user_id, page_id, message)
					VALUES (?,?,?) " ; return $ this -> db -> query ( $ sql , array ( $ data [ " user_id " ] , $ data [ " page_id " ] , $ data [ " message " ] ) ) ; }
DOCU Function to save a user message.
DOCU Function to save a user message .