Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] library question so simple/noob you'll be proud to answer me ...
#1

[eluser]Dagobert Renouf[/eluser]
Hi guys,

My library :

Code:
public function __construct()
    {

        $CI =& get_instance();
        $CI->load->helper('url');
        $CI->load->database();

    }

    public function display($table, $params = "")
    {
        if ($this->db->table_exists($table))
        {

            echo 'a';

        }

    }

it says db is not defined, why is that ? (I load the database in the constructor)


Messages In This Thread
[SOLVED] library question so simple/noob you'll be proud to answer me ... - by El Forum - 06-28-2008, 12:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB