Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. echo uniqid (); <--Generating ID
  4.  
  5. session_start();
  6. $db_hostname = 'localhost';
  7. $db_database = 'KeyGenerator';
  8. $db_username = 'root';
  9. $db_password = '';
  10. $db_table = 'keygenerator';
  11. $db_server = mysql_connect($db_hostname, $db_username, $db_password)
  12. or die(mysql_error());
  13. echo "Connected<br/>";
  14. mysql_select_db($db_database)
  15. or die(mysql_error());
  16. echo "DB found";
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement