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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.