Jump to content
Old threads will finally start getting archived ×

tcarnes

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tcarnes's Achievements

Newbie

Newbie (1/5)

0

Reputation

  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.
  3. I have about 8,000 xml files that I need to transform to html for display in a browser. The transformToDoc function is returning a "false" for about 1,000 of them and I need to find out why. Is there a way to find out what the error was, why the transformation failed? My code is: $xsl = new DOMDocument(); $xsl->load('http://www.fda.gov/oc/datacouncil/stylesheets/spl/spl.xsl'); $proc = new XSLTProcessor(); $proc->importStylesheet($xsl); $xml = new DOMDocument(); $xml->load($xmlFile); $domTranObj = $proc->transformToDoc($xml); if ($domTranObj === false) { $isGood = 0; $error = 'XML Transformation Failed'; // How do I find out why the transformToDoc failed? $numbad++; } Would someone help point me in the right direction? How do I find out why the transformToDo failed? Terry
×
×
  • 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.