|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-18 12:29 UTC] tony2001@php.net
[2005-02-18 13:52 UTC] bobpilly at yahoo dot co dot uk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 00:00:01 2025 UTC |
Description: ------------ I have just upgraded to php 5.0.3 and a simple if statement based on the identifier that worked with php 5.0.2 no longer works. I have now downgraded back to php 5.0.2 and everything is working fine again. when trying a print of $result in 5.0.2 i am returned a '1' character, when trying the same in 5.0.3 the $result variable is empty. I have checked the database and the query in running correctly and the field is being updated. May be a case that the function has changed and its not in the online documentation yet? Reproduce code: --------------- $numero= mssql_connect($dbserver,$dbuser,$dbpass) or die ("Unable to connect to database server"); $query = "update test_table set phonenum = '$phonenum' where ind = '$ind'"; $result = mssql_query($query,$numero); if($result){ print "update success!"; } else{ print "update failure!"; } Expected result: ---------------- update success! Actual result: -------------- update failure!