rconen Posted February 5, 2007 Share Posted February 5, 2007 I have a problem with the following lines of code: $query = "INSERT INTO tablename ...blablablabla"; $result = mssql_query($query, $dbc); if($result){ $return = true; }else{ //Do something else } When I execute this I see on the MS SQL 2005 server that the data is written to the table. The problem is that $result is always false. Can someone help me please with this problem. Link to comment https://forums.phpfreaks.com/topic/37141-mssql_query-doesnt-return-what-i-expect/ Share on other sites More sharing options...
rconen Posted February 5, 2007 Author Share Posted February 5, 2007 Problem solved. I used an older version of PHP which has a bug in the mssql_query() function. Link to comment https://forums.phpfreaks.com/topic/37141-mssql_query-doesnt-return-what-i-expect/#findComment-177425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.