I am getting some real peculiar behaviour. The following works great: $result=mssql_query($sql1); $result=mssql_query("SELECT @@ERROR As 'ErrorCode'"); $error=mssql_result($result,0,0); if($error['ErrorCode'] != 0) { echo $error['ErrorCode']; echo $sql1; die('Inserting Campaign failed'); }
This will work fine for a while unless I open the file in interdev to make a change somewhere. It will then produce errors for SQL that parses with no problems. If I make any kind of change again with interdev to these lines without changing the actual code and save the file it starts working again! Salve ps. Still cannot get the simple $result=mssql_query($sql1) or die('message'); to work either. Could this also be an interdev thing? Is it a file format issue with unrecognized row delimiters in the script file? Truly pulling my hair out over here. :-P -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php