1 | <?php |
||||
2 | |||||
3 | $server = 'localhost'; |
||||
4 | $username = 'root'; |
||||
5 | $password = 'root'; |
||||
6 | $database = 'ehotel'; |
||||
7 | |||||
8 | // Koneksi dan memilih database di server |
||||
9 | mysql_connect($server, $username, $password) or die('Koneksi gagal'); |
||||
0 ignored issues
–
show
|
|||||
10 | mysql_select_db($database) or die('Database tidak bisa dibuka'); |
||||
0 ignored issues
–
show
The function
mysql_select_db() has been deprecated: 5.5 Select a MySQL database
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.