• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

sqlsrv_num_rows() expects parameter 1 to be resource, boolean given

phpsql


PHP Snippet 1:

$stmt = sqlsrv_query( $conn, $sql, $params);
if( $stmt === false ) {
     die( print_r( sqlsrv_errors(), true));
}

Related Snippets

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

Why "Class 'GuzzleHttpClient' not found" even after Installing it in Laravel?

PHPExcel_IOFactory::createWriter causes wrong behaviour

Shortcode or PHP inside a shortcode in Wordpress

PHP - CURL using HTTPS [closed]

The sum of the user's points

PHP - installing Xdebug on Mac with XAMPP (Unix File)

How to make autocomplete work in foreach php loop? (vscode, intellisense)

is there any way to validate a field that sometime is File(image) && sometime is String(Src of same image)

Confirm Leave on External Links in Wordpress

PHP: convert all UTF-8 characters to HTML entities

SQLSTATE[HY000]: General error: 1 table posts has no column named *

How to put php code inside opening and closing shortcodes

backup files to google drive using PHP

About Contact Privacy policy Terms and conditions