Answers for "connect php mysql procedural way"

PHP
0

connect php mysql procedural way

<?php 
$servername = "localhost";
$username = "root";
$password = "";
$database ="user_online_app"; 

// Create connection
$conn = new mysqli($servername, $username, $password,$database);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
Posted by: Guest on August-03-2021

Browse Popular Code Answers by Language