Advertisement
Guest User

Untitled

a guest
Aug 5th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. ?php
  2. /////////////////////////////////////////////////////////////////////////////////
  3. //Database connection
  4. /////////////////////////////////////////////////////////////////////////////////
  5. $host="localhost"; // the path to the database, usually localhost,
  6. $user="user-name"; // your login name, for this part set up a 'select' only user
  7. $password="your password"; // the password you set - no password is dangerous !!!
  8. $database='your database'; // The database you want to read
  9. $link = mysql_connect($host,$user,$password);
  10. if (!$link)
  11. {
  12. die("Unable to Connect to Server");
  13. }
  14. mysql_select_db ($database)or die ('Unable to Select Database ');
  15. /////////////////////////////////////////////////////////////////////////////////////////////
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement