Login   Register  
PHP Classes
elePHPant
Icontem

File: db.conf.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrea Bersi  >  Forms generator for MYSQL  >  db.conf.php  >  Download  
File: db.conf.php
Role: Configuration script
Content type: text/plain
Description: database config
Class: Forms generator for MYSQL
Generate forms to edit MySQL table records
Author: By
Last change:
Date: 8 years ago
Size: 263 bytes
 

Contents

Class file image Download
<?php
$host   
"localhost";
$dbusername "andrea";
$dbpassword "ilaria";
$dbname    "michel";
if (!
mysql_connect($host$dbusername$dbpassword)){
    echo(
"Cannot connect to ".$host."!");
    exit;
}
@
mysql_select_db($dbname) or die (mysql_error());

?>