TVProjects top



TVProjects bottom
You are not registered.
Registration allows you to subscribe to projects, open projects, and more. Click here to register.

Website Source Code
<< Back

db.php

<?php
    
function db_connect()
    {
        global 
$connection$host$user$password$database;
        
$connection mysql_connect($host$user$password);
        
mysql_select_db($database$connection);
        
        if (!
$connection) {
            die(
'Error! (MySQL connection) ' mysql_error());
        }
    }
    
    function 
db_escape($string)
    {
        return 
mysql_escape_string($string);
    }
?>