Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to make a config file for php

<?php

$server = "localhost";
$username = "root";
$password = "";
$db = "your_db_name";


$conn = mysqli_connect($server, $username, $password, $db);

if(!$conn){
    die('Error in connecting to server or Database: ');
}
Source by www.nicesnippets.com #
 
PREVIOUS NEXT
Tagged: #config #file #php
ADD COMMENT
Topic
Name
8+9 =