Jump to content

help please


fullyloaded

Recommended Posts

hi
i have this site im trying to install but keep getting this error i tryed and did everything it asked me too but still nothing i even added the database info still nothing here is the error and the line on code im getting it on thanks...

[code]Fatal error: Undefined class name 'sconfig' in /home/singlesm/public_html/utube/include/config.php on line 39[/code]

[code]$DBTYPE = 'mysql';
$DBHOST = SConfig::get("Database", "host");
$DBUSER = SConfig::get("Database", "user_name");
$DBPASSWORD = SConfig::get("Database", "password");
$DBNAME = SConfig::get("Database", "db_name");[/code]
Link to comment
https://forums.phpfreaks.com/topic/27530-help-please/
Share on other sites

try using this..

[code]
<?php
//config file
ob_start();
session_start();
//database info
$_db_host = 'database_host';
$_db_user = 'database_username';
$_db_pass = 'database_password';
$_db_name = 'database_name';
//end db info
//connect to db
mysql_connect($_db_host, $_db_user, $_db_pass)
  or die('Could not connect: ' . mysql_error());
mysql_select_db($_db_name) or die('Could not select database');
//end connect
?>
[/code]

Also just put it in a new page called "connect.php" and then at the top of every page put in:
[code]
<?php include("connect.php"); ?>
[/code]
That should do it.
Link to comment
https://forums.phpfreaks.com/topic/27530-help-please/#findComment-125868
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.