Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "Engineringg96";
- $dbname = "tbl_fish";
- try
- {
- $connection = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
- $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- }
- catch(PDOException $e)
- {
- die("OOPs something went wrong");
- }
- ?>
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "Engineringg96";
- $dbname = "tbl_fish";
- try
- {
- $connection = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
- $connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- }
- catch(PDOException $e)
- {
- die("OOPs something went wrong");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement