Advertisement
Guest User

Untitled

a guest
Oct 27th, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2.  
  3.  //This script is designed by Android-Examples.com
  4. //Define your host here.
  5. $hostname = "127.0.0.1";
  6.  
  7. //Define your database username here.
  8. $username = "root";
  9.  
  10. //Define your database password here.
  11. $password = "";
  12.  
  13. //Define your database name here.
  14. $dbname = "test";
  15.  
  16.  $conn = mysql_connect($hostname, $username, $password);
  17.  
  18.  if (!$conn)
  19.  
  20.  {
  21.      
  22.  die('Could not connect: ' . mysql_error());
  23.  
  24.  }
  25.  
  26.  mysql_select_db($dbname, $conn);
  27.  
  28.  //This script is designed by Android-Examples.com
  29.  
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement