Gracias por responder.
No dice algo respecto a la configuración pero no lo entiendo bien ya que llene los datos pero esto errores son los que me salen www.bids507.com
Aqui esta el codigo
Código PHP:
Ver original<?php
class DB
{
// Connection parameters
var $host = 'localhost';
var $user ="user";
var $password ="password";
var $database ='database';
var $persistent = false;
var $adminid='admin';
var $adminipwd='admin';
// Database connection handle
var $conn = NULL;
// Query result
var $result = false;
// function DB($host, $user, $password, $database, $persistent = false)
function DB()
{
}
function open()
{
// Choose the appropriate connect function
if ($this->persistent) {
$func = 'mysql_pconnect';
} else {
$func = 'mysql_connect';
}
// Connect to the MySQL server
$this->conn = $func($this->host, $this->user, $this->password);
if (!$this->conn) {
return false;
}
// Select the requested database
return false;
}
return true;
}
function close()
{
}
function error()
{
}
function query($sql = '')
{
return ($this->result != false);
}
function affectedRows()
{
}
function numRows()
{
}
function fieldName($field)
{
}
function insertID()
{
}
function fetchObject()
{
}
function fetchArray()
{
}
function fetchAssoc()
{
}
function freeResult()
{
}
}
define('_BASEURL_','http://yourdomain.com/');
/*
define('_BASEURLCSSNEW_','http://yourdomain.com');
define('_BASEURLICONS_','http://yourdomain.com');
define('_BASEURLHOWITWORKS_','http://yourdomain.com');
define('_BASEURLTEMPLATEIMAGE_','http://yourdomain.com');
define('_BASEURLMEDIA_','http://yourdomain.com');
define('_BASEURLMEDIAIMAGES_','http://yourdomain.com');
*/
define('_BASEURLCSSNEW_','http://yourdomain.com/div2');
define('_BASEURLICONS_','http://yourdomain.com/div2');
define('_BASEURLHOWITWORKS_','http://yourdomain.com/div2');
define('_BASEURLTEMPLATEIMAGE_','http://yourdomain.com/div2');
define('_BASEURLMEDIA_','http://yourdomain.com/div2');
define('_BASEURLMEDIAIMAGES_','http://yourdomain.com/div2');
define('_BASEPATH_','/home/domain/public_html/');
define('_IMAGESURL_',_BASEURL_
.'/images');
define('_IMAGESPATH_',_BASEPATH_
.'/images');
define('_IMAGESURLM_',_BASEURL_
.'notesimages');
define('_IMAGESPATHM_',_BASEPATH_
.'notesimages');
define('_TITLE_','yourdomain.com | ');
define('_TITLE1_','yourdomain.com');
$accepted_upload_extensions_pics = array('gif','jpg','jpeg','png');
function get_uname($uid){
$sql="select * from user where id='$uid'";
$uname=$myuname['uname'];
return $uname;
}
?>