Connecting to the Informix database
$database = "video"; /* populate variables */
$dbs = $g_database . "@" . $g_server; /* concatenate */
$connect_id = ifx_pconnect($dbs,$g_login,$g_password);
echo "Unable to connect to Informix database<br>\n";
chk_ifx_err1($connect_id);
echo “Informix connection successful! <br>”;
This is my user defined function