Advertisement
Guest User

Innovate farm

a guest
Sep 28th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2. // this is how you connect to your database.if your are using plain PHP, i have assigned all privileges to
  3. // innovatefarm_root user on the innovatefarm_innovate Database.
  4.  
  5. $hostname='localhost';
  6. $username='innovatefarm_root';
  7. $password='innovatefarm_root user password';
  8.  
  9. try {
  10.     $dbh = new PDO("mysql:host=$hostname;dbname=innovatefarm_innovate",$username,$password);
  11.     }
  12. catch(PDOException $e)
  13.     {
  14.     echo $e->getMessage();
  15.     }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement