Programs not Running - SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Dear List -

Thanks to all for your help.

The problem was in this piece of code:

        require '/var/www/';
        $db = "Store";
        $cxn = mysqli_connect($host,$user,$password,$db);
        if ( !$cxn ) {
          die( 'connect error: '.mysqli_connect_error() );

I had moved the password file [/var/www/] out of root, but forgot to change the code!

This still leaves a question:

        if ( !$cxn ) {
          die( 'connect error: '.mysqli_connect_error() );

Why did the above code catch the error??


PHP Database Mailing List (
To unsubscribe, visit:

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux