About 48,300 results
Open links in new tab
  1. PHP: mysql_select_db - Manual

    mysql_select_db (string $database_name, resource $link_identifier = NULL): bool Sets the current active database on the server that's associated with the specified link identifier. Every subsequent call to mysql_query() will be made on the active database.

  2. PHP mysqli select_db() Function - W3Schools

    The select_db() / mysqli_select_db() function is used to change the default database for the connection.

  3. PHP MySQL Select Data - W3Schools

    The SELECT statement is used to select data from one or more tables: SELECT column_name(s) FROM table_name or we can use the * character to select ALL columns from a table:

  4. php - How do I use mysql_connect() and mysql_select_db() …

    If you use phpMyAdmin then there should be a dropdown menu on the left side of the screen where you can select databases. The names in that dropdown menu are also the names you need to use in your PHP scripts. define('DB_NAME', 'database_name_i_dunno'); These look to be okay. $link = mysql_connect(DB_HOST, DB_USER, DB_PASS) or die("Couldn't ...

  5. mysqli::select_db - PHP

    mysqli::select_db -- mysqli_select_db — Selects the default database for database queries. Procedural style. Selects the default database to be used when performing queries against the database connection. This function should only be used to …

  6. php - unable to select database using mysql_select_db ... - Stack Overflow

    Jun 14, 2013 · In the following php code I'm trying to fetch rows of "admin" table which is already created in the "swan" database" to check if user exits. But I'm unable to select the database using mysql_select_db () and error no 1044 is displayed. What's wrong with the code??

  7. PHP MySQL Connect to database - W3Schools

    PHP 5 and later can work with a MySQL database using: MySQLi extension (the "i" stands for improved) PDO (PHP Data Objects) Earlier versions of PHP used the MySQL extension. However, this extension was deprecated in 2012.

  8. PHP & MySQL - Select Database Example - Online Tutorials …

    PHP uses mysqli_select_db function to select the database on which queries are to be performed. This function takes two parameters and returns TRUE on success or FALSE on failure. Syntax mysqli_select_db ( mysqli $link , string $dbname ) : bool

  9. PHP mysqli: select_db () function - w3resource

    Aug 19, 2022 · The mysqli_select_db () function/ mysqli::select_db is used to change the default database for the connection. The database name. Returns TRUE on success or FALSE on failure. printf("Connect failed: %s\n", mysqli_connect_error()); exit(); $row = $result->fetch_row(); printf("Default database is %s.\n", $row[0]); $result->close();

  10. How to Select Data from MySQL Database Tables Using PHP

    In this tutorial you will learn how to select the records from MySQL database tables using the SQL SELECT query in PHP.

  11. Some results have been removed