0
The problem was solved binding the other two SQL parameter and specifying is_null parameter in
mssql_bind
$days= 30;
$FromDate = NULL;
$ToDate = NULL;
mssql_bind($stmt, '@Days', $days, SQLINT4,FALSE,FALSE);
mssql_bind($stmt, '@FromDate ', $FromDate , SQLVARCHAR,FALSE,TRUE);
mssql_bind($stmt, '@...