Advertisement
Guest User

Untitled

a guest
Mar 8th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2.  
  3. $server='localhost';
  4. $user='root';
  5. $pass='';
  6. $db='cs3a';
  7.  
  8. $connection=mysql_connect($server,$user,$pass)
  9. or die("Could not connect to server..\n".mysql_error());
  10. mysql_select_db($db)
  11. or die("Could not connect to server..\n".mysql_error());
  12. echo "You are succesfully connected to CS3a Database!";
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement