note 34396 added to function.mssql-query

From: Date: Fri, 25 Jul 2003 17:16:16 +0000
Subject: note 34396 added to function.mssql-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-52652@lists.php.net to get a copy of this message
help. i would like to know whether a transaction is successful or not, what should i do? right now i have something like this: ********************TSQL****************** declare @success int BEGIN TRAN ... ... ... IF (@@ERROR<>0) BEGIN set success=1 COMMIT TRAN END select @success as success ***************************************** $res=mssql_query([that_whole_thing],$db_link) but $o=mssql_fetch_object($res) returns nothing, same with mssql_fetch_array. anyone have any ideas? ---- Manual Page -- http://www.php.net/manual/en/function.mssql-query.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34396 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34396&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34396&report=yes

« previous php.notes (#52652) next »