• 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

add uri parameter to Route name in laravel

Smarty: undefined extension class 'Smarty_Internal_Method_Get_Template_Vars'

target [LaravelFortifyContractsRegisterViewResponse] is not instantiable

Wordpress 'post_type_link' hides permalink

how to validate form data in codeigniter 4

Laravel 5 session not persisting after user is logged in

Make certain characters of a word from string bold

laravel controller function parameters

Results page in other window

Limit login attempts in Laravel 5.7

No definition found for function in vendor vscode

Appending data to an anchor tag

Laravel s3 upload file with metadata using pre-signed url

How to send image,audio or video through the WhatsApp API - PHP

Cut an arabic string

About Contact Privacy policy Terms and conditions