Monday, November 29, 2010

config.php file,connection string in php

<?php
//session_cache_limiter("nocahe");
session_start();
ob_start();

/*$database="database name";
$host="localhost";
$userid="useridr";
$password="password";

mysql_connect($host,$userid,$password);
mysql_select_db($database) or die("Could not select database");*/
?>
<?
//session_cache_limiter("nocahe");
session_start();
$database="database name";
$host="localhost";
$userid="root";
$password="";
MySQL_connect($host,$userid,$password);
MySQL_select_db($database) or die("Could not select database");
?>

No comments:

Post a Comment