Note that sqlite does have an option to raise exceptions instead of errors. I haven't tried this myself; Marcus will be able to advise more on how this works.
--Wez. > try { > $db = new SQLiteDatabase('foo.db'); > if ($db->query($sql)) { > // fetch rows > } else { > // handle error > } > } catch { > // handle exception > } > > It's really crazy to need to mix both types of error handling within > the same block of code. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php