Date: 12/27/00
- Next message: Yasuhide OMORI: "Re: [PHP-DB] IBM DB2 and DSN"
- Previous message: nuitari <email protected>: "Re: [PHP-DB] 'Best' DB for Linux/Apache/PHP?"
- Next in thread: JJeffman: "Re: [PHP-DB] Handling exceptions"
- Reply: JJeffman: "Re: [PHP-DB] Handling exceptions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have a function that updates a table. Though an exception should not
occur, I am not sure how to handle an exception if one should occur. If
the query is not successful, $sthdl will be "0", but if the query itself
is incorrect (e.g. $sid is blank), and exception would be generated.
Todd
function db_add_series_session($dbh, $sid, $series) {
$stmnt = "UPDATE SESSIONS SET SES_COURSE='" . $series . "' WHERE
SES_SESSION_ID=" . $sid;
$sthdl = ibase_query($stmnt,$dbh);
ibase_commit();
return $sthdl;
};
-- Todd Cary Ariste Software todd <email protected>-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Yasuhide OMORI: "Re: [PHP-DB] IBM DB2 and DSN"
- Previous message: nuitari <email protected>: "Re: [PHP-DB] 'Best' DB for Linux/Apache/PHP?"
- Next in thread: JJeffman: "Re: [PHP-DB] Handling exceptions"
- Reply: JJeffman: "Re: [PHP-DB] Handling exceptions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

