Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = "root";
- $password = "";
- $database = "map";
- // Opens a connection to a MySQL server
- $connection=@mysql_connect('localhost', $username, $password);
- if (!$connection) {
- die('Not connected : ' . mysql_error());
- }
- // Set the active MySQL database
- $db_selected = mysql_select_db($database, $connection);
- if (!$db_selected) {
- die ('Can\'t use db : ' . mysql_error());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement