Jump to content

Newbie with a gifted code...


mertch

Recommended Posts

Hi everyone,

 

When I call this config.php in my /m/ directory, the result is a blank page ?

 

<?php

 

// The connection is good

$connect_string = 'localhost';

$connect_username = 'root';

$connect_password = '';

$connect_db = 'affiliate';

 

$link =mysql_connect($connect_string, $connect_username, $connect_password) or die("Connection Failed");

mysql_select_db($connect_db) or die("Database selection failure");

 

$gff = mysql_query("SELECT * FROM affiliate_settings") or die(mysql_error());

$gffF = mysql_fetch_array($gff);

 

// site variables

 

$site_name = $gffF['site_name'];

$site_url = $gffF['site_url'];

$admin_email = $gffF['admin_email'];

$title =$gffF['title'];

$keywords =$gffF['keywords'];

$description = $gffF['description'];

$copyright = $gffF['copyright'];

$manual = $gffF['manual'];

//$currency = $gffF['currency'];

 

$symbol = $gffF['symbol'];

 

 

$usd_symbol='$';

$gbp_symbol='£';

$euro_symbol='&#8364;';

 

$today=date("Y-m-d");

$ip=$_SERVER['REMOTE_ADDR'];

?>

 

Thanx everyone for reading & helping.

 

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.