Firebird Driver for Codeigniter Finally!!

Thanks to Carlos G.  After searching of this problem  so long, it worked just fine.

Download Firebird Driver, saya pakai Codeigniter versi 1.3.7

https://github.com/cgarciagl/Firebird-for-Codeigniter

discussion thread kalau ada problem:
http://codeigniter.com/forums/viewthread/171008/

My Database configuration

$db['default']['hostname'] = "xxx.xx.xx.xx";
$db['default']['username'] = "SYSDBA";
$db['default']['password'] = "xxxxxx";
$db['default']['database'] = "/home/nama_database.GDB";
$db['default']['dbdriver'] = "firebird";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "NONE";
$db['default']['dbcollat'] = "NONE";
$db['default']['dialect'] = 3;


For print Error message
echo print_r($db['default']);
echo 'Trying to connect to database: ' .$db['default']['database'];
$fb_conn = ibase_connect(
$db['default']['hostname'],
$db['default']['username'],
$db['default']['password'])
or die ('Cannot connect to the database because: '. ibase_errmsg());

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s