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  >  comboBoxList  >  dbConnect.php  >  Download  
File: dbConnect.php
Role: Example script
Content type: text/plain
Description: dbConnect.php
Class: comboBoxList
Builds a form combo box field from database query
Author: By
Last change:
Date: 2003-07-21 02:05
Size: 236 bytes
 

Contents

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