Subject: Interesting problem with MSSQL transactions and PHP - msg#00000
List: php.tcphp
I've spent the latter half of the afternoon trying to determine a
problem I've been having involving transactions and php. For some
reason whenever I start a transaction and close a transaction, the very
next query is always failing on me.
For example:
$query = '
begin transaction
select * from employees
commit';
$result = mssql_query($query);
$query2 = 'select * from employees';
$result2 = mssql_query($query2);
$result2 = mssql_query($query2);
The second query in the above code will fail every time but the second
time it's passed it will return a result properly. Is there something
I'm missing here for cleanup? I've tried using sleep() after the first
query thinking maybe the server needs to do some catching up for some
reason, but that doesn't seem to matter. Has anyone had a similar
experience or am I losing my mind?
Was this page helpful?
Thread at a glance:
Next Message by Date:
click to view message preview
Trying to create HTML file
when I am writing this to file "<input type=text name=x value=$y>", I want it
to appear exactly the same inlcuding the "$y" in the file I am creating.
Any help?
Einstein said, “One thing I have learned in a long life - that all our science,
measured against reality, is primitive and childlike... Science without
religion is lame, religion without science is blind.”
_________________________________________________________________
Helping your favorite cause is as easy as instant messaging. You IM, we give.
http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join
Next Message by Thread:
click to view message preview
Trying to create HTML file
when I am writing this to file "<input type=text name=x value=$y>", I want it
to appear exactly the same inlcuding the "$y" in the file I am creating.
Any help?
Einstein said, “One thing I have learned in a long life - that all our science,
measured against reality, is primitive and childlike... Science without
religion is lame, religion without science is blind.”
_________________________________________________________________
Helping your favorite cause is as easy as instant messaging. You IM, we give.
http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join