You are on page 1of 2

<?

php
/**
* File Name : config.php
* Purpose : This is database connection file.
* Description: This is the data base configration
* file of prajavani news portal.
* Dependencies: Server
* Date of Creation: 16-March-2010
* Created By : 4C Plus Int co.
* Last Date of Modification:
* Modified By :
* Summary of Modifications :
$con = mysql_connect("200.0.0.101","pvani","pvani";
//$con = mysql_connect("192.168.1.48","prajayavani","praja(*&");
//$con = mysql_connect("localhost","root","editor");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("prajavani", $con);
mysql_query('SET CHARACTER SET utf8');
mysql_query("SET SESSION collation_connection ='utf8_general_ci'") or die (mysq
l_error());
*/
?>

<?php
ini_set('display_errors','0');
$sysdate= date('d');
$sysmonth= date('m');
$sysyear= date('Y');
/*
$db="prajavani";
$con=mysql_connect("200.0.0.101","pvani","pvani",)
or die ("Could't conncet Database");
mysql_select_db($db,$con)
or die ("Could't link to Database");
mysql_query('SET CHARACTER SET utf8');
mysql_query("SET SESSION collation_connection='utf8_general_ci'") or die ("Could
't link to Database");
*/
//$db="prajavani";
//$con = mysql_connect("200.00.101","pvani","pvani");
//mysql_select_db($db,$con)
//or die ("Could't link to Database");

$con = mysql_connect("localhost","root","root");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_query("SET SESSION collation_connection ='utf8_general_ci'") or die (mysq l_error()). mysql_query('SET CHARACTER SET utf8'). $con). mysql_select_db("prajavan_prajavaninew". ?> .