PHP Classes

File: connect.php

Recommend this page to a friend!
  Classes of Muhammad Faryad  >  PHP Key Generation System  >  connect.php  >  Download  
File: connect.php
Role: Configuration script
Content type: text/plain
Description: Db connection file
Class: PHP Key Generation System
Generate and validate keys attached to MAC address
Author: By
Last change:
Date: 8 years ago
Size: 209 bytes
 

Contents

Class file image Download
<?php
$host
= "localhost";
$user = "root";
$pass = "";
$database = "my_db";
$connection = mysql_connect($host,$user,$pass) or die (mysql_error());
mysql_select_db($database) or die (mysql_error());
?>