Untitled
public php v1 · immutable<?phpclass Categorymodel extends Model { var $id = 0; function Categorymodel() { parent::Model(); } /** * Save new category into database */ /** * Category By ID * * Gets category from database, returns true if category exists * return boolean */ function byID( $id ) { $query = $this->db->get_where("category",array('id' => $id)); echo $this->db->count_all_results(); }}/* END OF FILE */