Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Scripts| Email : sachin {at} jainsachin {dot} com

PHP | Returns a string description of the last connect error | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



Friends


    Returns a string description of the last connect error

    mysqli->connect_error

    mysqli_connect_error

    (PHP 5)

    mysqli_connect_error — Returns a string description of the last connect error

    Description

    mysqli
    string$connect_error;
    string mysqli_connect_error ( void )

    Returns the last error message string from the last call to mysqli_connect().

    Return Values

    A string that describes the error. An empty string if no error occurred.

    Examples

    Example #1 mysqli_connect_error() example

    <?php

    $link 
    = @mysqli_connect("localhost""nonexisting_user""");

    if (!
    $link) {
        
    printf("Can't connect to localhost. Error: %s\n"mysqli_connect_error());
    }
    ?>


    SEO Tutorial / Articles





    Php / Mysql Tutorial



    Articles



      Portfolio


      SEO by Jainsachin