Advertisement
blackimpala

database_connection.php

Mar 4th, 2024
834
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. <?php
  2.     $host = "localhost";
  3.     $username = "root";
  4.     $password = "root";
  5.     $dbname = "simco_pro";
  6.  
  7.     // Create database connection
  8.     $con = new mysqli($host, $username, $password, $dbname);
  9.  
  10.     // Check connection
  11.     if ($con->connect_error) {
  12.         die("Connection failed: " . $con->connect_error);
  13.     }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement