|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
ns_dbreturnerror conn dbhandle ?title? ?aftermsg?
ns_dberrorcode returns the 5-character SQL error code for the last database error.
ns_dberrormsg returns a text description of the last database error.
ns_dbreturnerror returns an HTML version of the last database error message to the client. The text in aftermsg is appended to the HTML after the error message.