Advertisement
Guest User

Untitled

a guest
Jan 27th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. //$host="172.16.6.65";
  5. $host="172.16.6.87";
  6. $user="5DS_CROVETTO";
  7. $pass="otto2015";
  8.  
  9. $dbname="5DS_CROVETTO";
  10. /**********Settings****************/
  11. $conn=mysql_connect($host,$user,$pass);
  12.  
  13. if($conn) {
  14. $db_selected = mysql_select_db($dbname, $conn);
  15.  
  16. if (!$db_selected) {
  17. die ('ERRORE DATABASE : ' . mysql_error());
  18. }
  19. }
  20. else
  21. {
  22. die('ERRORE CONN : ' . mysql_error());
  23. }
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement