Advertisement
ridyko

Untitled

Feb 1st, 2022
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2.  $servername = "localhost";
  3.  $username = "root";
  4.  $password = "";
  5.  $dbname = "dbkampus";
  6.  // Create connection
  7.  $conn = new mysqli($servername, $username, $password, $dbname);
  8.  // Check connection
  9.  if ($conn->connect_error) {
  10.  die("Connection failed: " . $conn->connect_error);
  11.  }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement