Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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);
}
Source by raw.githubusercontent.com #
 
PREVIOUS NEXT
Tagged: #connect #php #mysql #procedural
ADD COMMENT
Topic
Name
6+1 =