php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31598 mssql_query() reports false result.
Submitted: 2005-01-18 16:03 UTC Modified: 2005-01-18 16:47 UTC
From: mhoppstaedter at gmx dot de Assigned:
Status: Not a bug Package: MSSQL related
PHP Version: 5CVS-2005-01-18 (dev) OS: Windows 2k Server
Private report: No CVE-ID: None
 [2005-01-18 16:03 UTC] mhoppstaedter at gmx dot de
Description:
------------
mssql_query() reports false result. This only seems to happen by an update (insert?) statement; select statement seems to work correctly. It was reported that this bug was fixed in CVS, but I downloaded Win32 Stable (5.0.x-dev) from 18, 2005 09:30 GMT and this DOES NOT fix it.

Reproduce code:
---------------
$sql = "UPDATE table SET field = 'text' WHERE id = '$id'";
mssql_query($sql) or die("Error MS-SQL: ".$sql);

Expected result:
----------------
No error message.

Actual result:
--------------
Error MS-SQL: UPDATE table SET field = 'text' WHERE id = 'id'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-18 16:22 UTC] mhoppstaedter at gmx dot de
Sorry, for being that stupid!!! ;-)
But I forgot to copy the new php_mssql.dll to the root folder. 
The bug IS FIXED ind CVS!!!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 03:01:28 2024 UTC