Jump to content

mssql_query doesn't return what I expect


rconen

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.