Advertisement
Guest User

Untitled

a guest
May 11th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. $host="localhost";
  4. $user="root";
  5. $pass="";
  6. $db_name="marvel";
  7.  
  8. $conn=mysql_connect($host, $user, $pass);
  9.  
  10. if (!$conn)
  11. {
  12. echo 'PROBLEMS';
  13. exit;
  14. }
  15.  
  16. else
  17. {
  18. $db=mysql_select_db($db_name);
  19.  
  20. if (!$db)
  21. {
  22. echo 'PROBLEMS';
  23. exit;
  24. }
  25. }
  26.  
  27. session_start();
  28.  
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement