daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Jul 21st, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. class mysql{
  3. var $host;
  4. var $user;
  5. var $password;
  6. var $database;
  7. function connect(){
  8. mysql_connect($this->host,$this->user,$this->password) or die("error1");
  9. mysql_select_db($this->database) or die("error2");
  10. }
  11. }
  12.  
  13. $mysql = new mysql;
  14. $mysql->host = "localhost";
  15. $mysql->user = "root";
  16. $mysql->password = "";
  17. $mysql->database = "balc";
  18. $mysql->connect();
  19. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top