PHP Classes

File: config.php

Recommend this page to a friend!
  Classes of nirav   Database class for MySQL   config.php   Download  
File: config.php
Role: Configuration script
Content type: text/plain
Description: MySQL database connection
Class: Database class for MySQL
Manipulate MySQL database table records
Author: By
Last change:
Date: 11 years ago
Size: 258 bytes
 

Contents

Class file image Download
<?php
define
('DB_USER','root');
define('DB_PASS','ganesha');
define('DB_HOST','localhost');
define('DB_NAME','chat');

$DbRes = mysql_connect(DB_HOST,DB_USER,DB_PASS) or die(mysql_error());
$TableRes = mysql_select_db(DB_NAME) or die(mysql_error());




?>