This question already has an answer here:
i still new in sqlserver and i trying to fetch database like this
$sql = "select top 1 pdate from j2365join_transaction_old where order by pdate desc";
$mulaisql = sqlsrv_query($sqlconn2, $sql, array(), array( "Scrollable" => 'static'));
$mulai = sqlsrv_fetch_array ($mulaisql, SQLSRV_FETCH_ASSOC);
print_r ($mulai);
but go error
sqlsrv_fetch_array() expects parameter 1 to be resource, boolean given
, can someone explain to me why i got this error, thanks
</div>