Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //This connection script is mandatory because it is the one used throughout the system
- session_start();
- if($_SERVER["REMOTE_ADDR"] == "127.0.0.1" or $_SERVER["REMOTE_ADDR"] == "localhost"){
- $hostname='localhost';
- $username='root';
- $password='xxxxxx';
- $dbname='netalbal_pedralbesbooking';
- }
- else{
- $hostname='localhost';
- $username='netalbal_fsnoya';
- $password='xxxxxx';
- $dbname='netalbal_pedralbesbooking';
- }
- $link = mysqli_connect($hostname, $username, $password, $dbname);
- mysqli_query($link,"SET CHARACTER SET 'utf8'");
- mysqli_query($link,"SET SESSION collation_connection ='utf8_unicode_ci'");
- if (!$link) {
- die(mysqli_error());
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement