Example #2 PDO_INFORMIX DSN example using a connection string
To work properly, the DSN connection string must not have line breaks.
<?php
$conexion = new PDO("informix:host=host.domain.com; service=9800;
database=common_db; server=ids_server; protocol=onsoctcp;
EnableScrollableCursors=1", "testuser", "tespass");
$sql = "SELECT * FROM test";
$prep = $conexion->prepare($sql);
$prep->execute();
$result = $prep->fetchAll(PDO::FETCH_ASSOC);
var_dump($result);
?>