Guest User

Untitled

a guest
Nov 28th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $servername = "1.2.3.4";//local ip of the system where mysqldb is located
  2. $username = "root";
  3. $password = "password";
  4. $dbname = "ebizData";
  5. $logVar = "A";
  6. //$errorPath = "/home/mukundUBU/Documents/phperror/";
  7. $errorPath = "/home/mukund/Documents/phperror/";
  8. // Create connection
  9. $conn = new mysqli($servername, $username, $password, $dbname);
  10. // Check connection
  11. if ($conn->connect_error) {
  12. die("Connection failed: " . $conn->connect_error);
  13. }
  14. else{
  15. // echo 'S';
  16. }
Add Comment
Please, Sign In to add comment