Just use a combination of mysql_errno() and mysql_error():
echo mysql_errno() . ": " . mysql_error(). "\n";
Adam
PS. Documentation always rocks!
Hi guys,
I've been playing with PHP for a while now, and love the mysql
functions,
but there's one thing I'd like to know...
I want to check if a
Thanks for replying Adam,
I know how to trap an error and how to show errors in the document, what i
was aiming for is to build my own system of user-friendly errors into my
database layer of my server application to make the errors nicer, and wanted
to write myself an include file with nicer vers