Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using CodeIgniter with Informix

644 views
Skip to first unread message

doctor

unread,
Aug 6, 2011, 9:24:19 AM8/6/11
to
Anyone has successfully using CodeIgniter with Informix ?

dieg...@gmail.com

unread,
Oct 14, 2014, 12:03:54 PM10/14/14
to
mmmmmm........ pregunta ya te an solucionado la pregunta?

Yo poseo problemas con esa coneccion.

sula...@terato.com

unread,
Mar 21, 2016, 11:05:02 PM3/21/16
to
On Saturday, August 6, 2011 at 9:24:19 PM UTC+8, doctor wrote:
> Anyone has successfully using CodeIgniter with Informix ?

Hi, I got it working in CodeIgniter 3, below is my setup in database.php;

$db['myexport'] = array(
'dsn' => '',
'subdriver' => 'informix',
'hostname' => getenv('MYEXPORT_HOSTNAME'),
'port' => getenv('MYEXPORT_PORT'),
'username' => getenv('MYEXPORT_USERNAME'),
'password' => getenv('MYEXPORT_PASSWORD'),
'database' => getenv('MYEXPORT_DATABASE'),
'server' => getenv('MYEXPORT_SERVER'),
'dbdriver' => 'pdo',
'db_debug' => TRUE,
'pconnect' => FALSE,
'cache_on' => FALSE
);

and below is the code sample in model/controller;

$this->ifx = $this->load->database('myexport', TRUE);
$sql = 'SELECT cmpy_id FROM company';
$query = $this->ifx->query($sql);
return $query->result_array();

sula...@terato.com

unread,
Mar 21, 2016, 11:12:37 PM3/21/16
to
And make sure you have PDO and pdo_informix module installed in PHP.

Onistech Info Systems

unread,
Apr 16, 2021, 3:46:59 AM4/16/21
to
could not find driver
0 new messages