Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Connect to a MySQL database using driver invocation */
- $dsn = 'mysql:dbname=server;host=46.249.49.18';
- $user = 'root';
- $password = 'ASD23932nskan@4';
- try {
- $odb = new PDO($dsn, $user, $password);
- } catch (PDOException $e) {
- echo 'Connection failed: ' . $e->getMessage();
- }
- ?>
Add Comment
Please, Sign In to add comment