$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');
}
Apache を使用して IBM iSeries で PHP を実行しています。私たちのデータベースもこの iSeries 上にあります。
どのような接続が確立されていますか? ODBCリンクですか?これがシステムごとに異なる場合、どうすればわかりますか?