Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //This allows you to connect to your DB
- //connection credentials
- $servername = getenv("IP");
- $username = getenv("C9_USER");
- $password = "";
- $database = "lakehub";
- $dbport = 3306;
- //Connect to DB
- $db = new mysqli($servername, $username, $password, $database,$dbport);
- //Call
- if($db->connect_error){
- header('content-type: text/plain');
- die("error encountered.");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement