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
https://forums.phpfreaks.com/topic/213314-newbie-with-a-gifted-code/
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.