Re: [PHP-DB] mysqli_select_db() expects exactly 2 parameters, 1 given

2007-05-25 Thread David Weitz
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

Re: [PHP-DB] mysqli_select_db() expects exactly 2 parameters, 1 given

2007-05-25 Thread James Lockie
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: