<?php
/************* Recipe *****************************/
/*
Released by AwesomePHP.com, under the GPL License, a
copy of it should be attached to the zip file, or
you can view it on http://AwesomePHP.com/gpl.txt
*/
/************* Recipe *****************************/
function connect(){
$DB_USER = "root";
$DB_PASSWORD = "";
$DB_HOST = "localhost";
$dbc = mysql_connect ($DB_HOST, $DB_USER, $DB_PASSWORD) or $error = mysql_error();
mysql_select_db("freephp") or $error = mysql_error();
mysql_query("SET NAMES `utf8`");
return $error;
}
function disconnect_data(){
@mysql_close($dbc);
@mysql_close();
}
?>