PHP Classes

File: config.php

Recommend this page to a friend!
  Classes of ganesh kavhar   PHP Export MySQL Query to Excel   config.php   Download  
File: config.php
Role: Configuration script
Content type: text/plain
Description: Configuration values to access the MySQL database
Class: PHP Export MySQL Query to Excel
Download an Excel file from MySQL query results
Author: By
Last change:
Date: 1 year ago
Size: 304 bytes
 

Contents

Class file image Download
<?php

define
('DB_SERVER','localhost');

define('DB_USER','root');

define('DB_PASS' ,'');

define('DB_NAME', 'empdata');

$con = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB_NAME);

// Check connection

if (mysqli_connect_errno())

{

 echo
"Failed to connect to MySQL: " . mysqli_connect_error();

}

?>