Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql_error() function

Status
Not open for further replies.

riffy

Programmer
Mar 29, 2001
106
US
is sql_error() a standard function in php? like do i have to declare it somewhere or can i just call it if there's an error on the page?
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top