Advertisement
M00371202

coursework connect.php

Dec 18th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?
  2. session_start();
  3. //this is the  MySQL database host name
  4. $db_host = "000webhost";
  5.  
  6. //This is MySQL database username
  7. $db_username = "97157685_rawish";
  8.  
  9. // MySQL database password
  10. $db_password = "123456789fr";
  11.  
  12. // MySQL database name
  13. $db_name = "97157685_friba";
  14.  
  15.  
  16.  
  17. //connect to the database server
  18. $connection = mysql_connect($db_host, $db_username, $db_password) or die(mysql_error());
  19.  
  20. //select database
  21. $db = mysql_select_db($db_name, $connection);
  22.  
  23.  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement