application/models/Comment.php
/*DOCU Function to save comments for messages. Owner:Philip*/
DOCU Function to save comments for messages. Owner:Philip
DOCU Function to save comments for messages . Owner : Philip
public function save_comment($data) {
			$sql = "INSERT INTO comments(user_id, page_id, message_id, comment)
					VALUES (?,?,?,?)";
			return $this->db->query($sql, array($data["user_id"],$data["page_id"],$data["message_id"],$data["comment"]));
		}
public function save_comment ( $ data ) { $ sql = " INSERT INTO comments(user_id, page_id, message_id, comment)
					VALUES (?,?,?,?) " ; return $ this -> db -> query ( $ sql , array ( $ data [ " user_id " ] , $ data [ " page_id " ] , $ data [ " message_id " ] , $ data [ " comment " ] ) ) ; }
DOCU Function to save comments for messages.
DOCU Function to save comments for messages .