Advertisement
Guest User

Untitled

a guest
Jun 13th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?php
  2. // db
  3. $location = "";
  4. $user = "root";
  5. $pass = "mypass";
  6. $db = "adminPortal";
  7.  
  8. $conn = mysql_connect($location, $user, $pass);
  9. if (!$conn) {
  10.   die("Couldnt connect to DB. ". mysql_error());
  11. }
  12. else {
  13.   mysql_select_db($db,$conn);
  14. }
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement