Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('db_credentials.php');
- function db_connect() {
- $connection = mysqli_connect(DB_SERVER, DB_USER, DB_PASS, DB_NAME);
- return $connection;
- }
- function db_disconnect($connection) {
- if(isset($connection)) {
- mysqli_close($connection);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement