Login   Register  
PHP Classes
elePHPant
Icontem

File: connect_mysql.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Charles Siegrist  >  FF Form  >  connect_mysql.php  >  Download  
File: connect_mysql.php
Role: Configuration script
Content type: text/plain
Description: My Sql connection data
Class: FF Form
Generate Web forms filling with data from MySQL
Author: By
Last change:
Date: 2004-06-05 15:51
Size: 349 bytes
 

Contents

Class file image Download

<?php 
$host 
"localhost"// Your mysql host 
$user "username"// Your user name
$pass "";            // Your password
$db ="db_name";    // Your database name 


mysql_connect($host$user$pass
or die(
"<b>Could not connect:</b>" .mysql_error()); 
mysql_select_db($db
or die (
"<b>Database could not be found:</b>" .mysql_error());
?>