| PHP Database Integration With MySQL |
|
|
|
| The Article - php | |||||||||
| Written by Chetankumar Akarte | |||||||||
| Wednesday, 07 March 2007 | |||||||||
Page 3 of 7 Select MySQL Database :Now, we have established the connection with MySQL, and creates database user and table visitor. To work with the database, it must select. To select any MySQL database, PHP provides the mysql_select_db() function. It requires the database name which is to be selected and the link to database. Link is optional and if that is omitted, then the identifier returned from the last connection to server will be assumed as link.
Code 3: dbselect.php The dbselect.php produces output as shown in Output-3.
Output 3 :- dbselect.php |
|||||||||
| Last Updated ( Tuesday, 13 March 2007 ) | |||||||||