Posts: 427
Name: Stuart
Location: Glasgow, Scotland
|
This solution was presuming you are using PHP and a mySQL database - i think this would be the best thing to use for it but if you're not then it's of no use.
The config.php is just a file that has all the information to connec to the database
, e.g.
PHP Code:
$link = mysql_connect("localhost", "root", "password");
if (! $link)
die("Couldn't connect to MySQL");
mysql_select_db("database_name") or die ("Couldn't open database");
You can add people to this by making a table in the database that has fields called 'refer_count' and 'referId' and then adding a row with the relevant information.
You will need SOME knowledge of php and mysql to implement it but not that much so good luck!
Stoot
|