Jump to content

tcarnes

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Everything posted by tcarnes

  1. premiso, Thanks for your help! I've got it working and am glad to see the details of the error. I could clean up the result a bit, but since I'm the only one getting the error emails, I'm just going to leave it as it is. One question: In your my_query function you set display_errors to 1 in the beginning and then reset it to 0 only if there is an error. Should I reset it to 0 even when there is not an error?
  2. When I have ini_set('display_errors', '1'); I will see a rather complete error message if I try to do something wrong with the database. ie: However, when I use the following code: $result[] = mssql_get_last_message(); return $result; I just get back: Any idea how I can get a more complete error message? I especially want to see the reason for the error (i.e., "Cannot insert the value NULL into column 'UserName', table 'ORDER'; column does not allow nulls. INSERT fails.") I am using MS SQL Server 2000 for this application.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.