Login   Register  
PHP Classes
elePHPant
Icontem

File: dbConnect.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Oliver Susano  >  queryList  >  dbConnect.php  >  Download  
File: dbConnect.php
Role: Example script
Content type: text/plain
Description: connect to the database
Class: queryList
query with pagination and previous next
Author: By
Last change: -
Date: 11 years ago
Size: 221 bytes
 

Contents

Class file image Download
<?
    
require("userVariable.inc");
    if (!
mysql_connect($hostName$dbUserName$dbPassword)){ 
        
displayErrorPage("Cannot connect to ".$hostName."!");
          exit;
    }
    @
mysql_select_db($dbName) or die (mysql_error());
?>