$connection = db2_connect ( '*LOCAL', PHP_USER_NAME, PHP_USER_PASS );
if (! $connection) {
die('Could not connect');
}
//Prepare and execute the SQL statement.
$stmt = db2_prepare ( $connection, $sqlStatement );
if (! db2_execute ( $stmt ) ) {
Throw New Exception('Could not execute statement');
}
We are running PHP on an IBM iSeries with Apache. Our database is also on this iSeries.
What sort of connection is being established? Is it an ODBC link? If this is something that varies from system to system, how can i tell?