Guest User

Untitled

a guest
Jun 7th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2. if($_SERVER['SERVER_NAME']=="localhost" || $_SERVER['SERVER_NAME']=="kutchenarte.local")
  3. {
  4. $host = "176.56.61.239";
  5. }
  6. else
  7. {
  8. $host = "localhost";
  9. }
  10.  
  11. $username = "root";
  12. $password = "reuben";
  13. $db = "kutchenarte_db";
  14.  
  15. $db_connection = mysql_connect($host, $username, $password) or die("Could not connect to db");
  16. mysql_select_db ($db, $db_connection) or die("Could not connect to table");
  17. ?>
Add Comment
Please, Sign In to add comment