Welcome Guest, Not a member yet? Register   Sign In
Having a Problem in fetching the results from db
#3

(12-29-2014, 05:31 AM)Chandini Wrote: Hai , Friends ...
   I am facing the problem in  fetching  the results from database ... ... the below code is working perfectly but i am not understand the code plz give  clarify .. when its where condition is depends .. if i change the page field then also working perfectly
.. what's going on i not understood help me .. Thanks .....!

Try some thing like this in model to get data
PHP Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class 
Model_setting_get extends CI_Model {
    
var 
$table_store 'store';

public function 
__construct() {
parent::__construct();
}

public function 
get_stores() {
return 
$this->db->get($this->db->dbprefix .$this->table_store)->result_array();
}


There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
RE: Having a Problem in fetching the results from db - by wolfgang1983 - 12-29-2014, 06:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB