Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- try {
- $host = "localhost";
- $username = "root";
- $password = "";
- $dbname = "db_sensor";
- $PDO = new PDO("mysql:host=" . $host . ";dbname=" . $dbname . ";charset=utf8", $username, $password);
- } catch (PDOException $erro) {
- echo "Gagal Terhubung ke database : " . $erro->getMessage();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement