|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9500 mssql_query returns false for INSERT & UPDATE queries
Submitted: 2001-02-28 16:05 UTC Modified: 2002-06-18 18:24 UTC
From: gsohl at freedomgroup dot com Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.0.4pl1 OS: NT 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
22 + 28 = ?
Subscribe to this entry?

 [2001-02-28 16:05 UTC] gsohl at freedomgroup dot com
mssql_connect('myserver', 'user', 'password');

$Result = mssql_query("UPDATE mytable SET nextval=nextval+1");
if ($Result)
	echo("Result is TRUE<BR>");
	echo("Result is FALSE<BR>");

echo '<BR><BR>';

$Result = mssql_query("INSERT mytable values(10)");
if ($Result)
	echo("Result is TRUE<BR>");
	echo("Result is FALSE<BR>");


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-08 18:56 UTC]
Mind telling that which bug report is the duplicate
to this one?


 [2001-03-09 13:27 UTC]
Duplicate of #8777

 [2002-06-18 18:24 UTC]
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon May 29 20:03:40 2023 UTC