Jump to content

[SOLVED] What is wrong with this code


assasinkilla

Recommended Posts

<?
// database param
define('DB_TYPE', 'mysql');
define('DB_SERVER', 'localhost');
define('DB_USER', 'mything');
define('DB_PASSWORD', 'mypass');
define('DB_DATABASE', 'myspace');

// set
define('HOMEPAGE','http://web.web);
define('SITENAME','Myspace Codes');
define('SHOWPIMP','ON');	//ON or OFF      show left-top


define('ROOT_DIR',    'http://www.whateverlifs.com'); // Real path to your index page
define('MP3FLASHLIST_DIR',ROOT_DIR.'/uploads/playlist');

//You do not need to change anything below this line.

$mysql_server = DB_SERVER;
$mysql_user = DB_USER;
$mysql_pass = DB_PASSWORD;
$mysql_db = DB_DATABASE;

$strDBServer = $mysql_server;
$strDBUser = $mysql_user;
$strDBPass = $mysql_pass;
$strDBName = $mysql_db;
$strPath = $site_url;

$site_name = SITENAME;
$site_url = HOMEPAGE;

$strFPID = "196180083";
$strFPName = "ME";
$strFPAge = "29";
$strFPQuote = "ADD ME!";
$strFPImage = "http://www.timeaction.com/img/me.gif";
?>

 

And

<?

include_once(ROOT_DIR."/include/adodb/adodb.inc.php");

 

$db = ADONewConnection(DB_TYPE);

$db->Connect(DB_SERVER, DB_USER, DB_PASSWORD, DB_DATABASE);

?>

Why error?! :S

Link to comment
https://forums.phpfreaks.com/topic/82918-solved-what-is-wrong-with-this-code/
Share on other sites

We may be here awhile at this rate... = D

 

You forgot the closing quote. You might also need a trailing slash, so try both

 

define('ROOT_DIR',    '/home2/myuser/public_html'); // Real path to your index page

or

define('ROOT_DIR',    '/home2/myuser/public_html/'); // Real path to your index page

 

PhREEEk

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.