0

I am using the following code to bind out parameter for stored procedure.

mssql_bind($stmt, '@_SORef', $Ref, SQLVARCHAR, true);

But, I am getting empty value instead of null as value of $Ref. How can I get null value from the out parameter?

Zhorov
  • 28,486
  • 6
  • 27
  • 52
anik_s
  • 243
  • 3
  • 18

1 Answers1

0

You need to pass the optional is_null parameter

mssql_bind($stmt, '@_SORef', $Ref, SQLVARCHAR, true, true);

http://php.net/manual/en/function.mssql-bind.php

Neil P
  • 2,920
  • 5
  • 33
  • 64