How to select a database in php?
Answer / Ritu Wala
In PHP, you can use the `mysqli_select_db()` function to select a database when working with MySQLi. First, establish a connection using `mysqli_connect()`, then call `mysqli_select_db($connection, $databaseName)`. For PDO: `$pdo->exec('USE ' . $databaseName);`
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we extract string 'abc.com' from a string "http://info@abc.com" using regular expression of PHP
How is it possible to propagate a session id?
How does the identity operator ===compare two values in PHP?
What is html used for?
What is get and post method in php?
Tell me is it possible to submit a form with a dedicated button?
How do you sort an array in php?
how to insert logout time when browser close
What is register_globals in php?
6 Answers Castling IT, HCL, Intel Soft Solutions, Millennium,
How are Variables Defined in PHP?
How can i send a HTML file to mail account.
What is session management php?