sql_error() as such is not a function in PHP, but PHP has built-in functions that provide that functionality for just about any DB you'd ever use. For example,
mysql_error(), ora_error(), oci_error(), pg_errormessage(), etc.
Most of them take the database handle (or is it the statement handle?) as an argument. Brad Gunsalus
Cymtec Systems, Inc.
bgunsalus@cymtec.com