Re: mysqli_select_db() expects exactly 2 parameters, 1 given
| From: | James Lockie | Date: | Fri, 25 May 2007 20:46:39 +0000 |
| Subject: | Re: mysqli_select_db() expects exactly 2 parameters, 1 given | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-43642@lists.php.net to get a copy of this message | ||
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. :-(