Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ..........
- $data["all_types"] = $this->data_model->get_data("all_types",300,"Asc");
- $this->load->view("preview_brands",$data);
- ...........
- <h4>Discover brands </h4>
- <div class="decoration"></div>
- <?php foreach($all_types as $item): ?>
- <div style="display:block;color:#000;">
- <a style="font-size:17px;margin:15px 2px;font-family:Cgothic;"
- href="<?php echo site_url()."...../..../".$item["id"]; ?>"
- class="scale-hover"
- title="<?php echo str_replace("_"," ",$item["name"]);?>">
- <strong><?php echo str_replace("_"," ",$item["name"]);?></strong>
- </a>
- </div>
- <?php endforeach; ?>
- function get_data($db,$i,$order)
- {
- $this->db->order_by("name",$order);
- $this->db->where('consent',"yes");
- $query=$this->db->get($db);
- return $query->result_array();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement