Re: mysqli_select_db() expects exactly 2 parameters, 1 given

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

 



David Weitz wrote:
mysqli_select_db requires the connection to be in the first argument. So:
$link = mysqli_connect('blah','blah','blah');
$db = mysqli_select_db($link,$db_name);

James Lockie wrote:
I do: $db = mysqli_select_db( $database_name );
I get this error: HP Warning: mysqli_select_db() expects exactly 2 parameters, 1 given

I have MySQL server version: 4.1.22 and PHP 5.2.2.


It is not plugin compatible with the mysql_ calls. :-(

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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

  Powered by Linux