<?php

$bd_host = "localhost";
$bd_user = "user";
$bd_password = "password";
$bd_base = "base";
$url = "http://cashid.ru/";
$con = mysql_connect($bd_host, $bd_user, $bd_password); mysql_select_db($bd_base, $con);
mysql_query("set names cp1251");
mysql_query ("set character_set_client=cp1251");
mysql_query ("set character_set_results=cp1251");
mysql_query ("set collation_connection=cp1251_general_ci"); 
?>