General Statistics
390 Tutorials
202 Total Votes
9 User(s) Online
746866 Views Total
3000 Registered Members
24435 Posts Total
Rooneyfeld is our newest member
About this Tutorial: Advanced Affiliation Script v1
Advanced Affiliation Script v1
Rated 5 / 3 Votes

Advanced Affiliation Script v1

The ultimate affiliation management system. With built in administration panel, its your all in one package!


Date Added: November 21, 2005 [ 4367 Views - 3 Votes ] [ Rate ]

Author: Chaos King [ PHP Coding ] [ 12 Comment(s) ]

Advanced Affiliation Script v1
This tutorial will show you how to create a affiliation script, in which has an admin panel where you can manage your affiliates and more!

1) Create a new database and run this query through phpmyadmin or what ever manager you have in the database created.

CODE
CREATE TABLE affiliates (
id int(11) NOT NULL auto_increment,
views smallint(3) NOT NULL,
name TEXT NOT NULL default '',
link TEXT NOT NULL default '',
image TEXT NOT NULL default '',
PRIMARY KEY (id),
KEY id (id)
) TYPE=MyISAM;



2) Next, create a file called db.php and all the following code in there. Replace with correct information

CODE
<?php
$username = "USERNAME";
$password = "PASSWORD";
$host = "localhost"; //usually local host
$database = "DATABASE";
mysql_connect($host,$username,$password) or die("Error connecting to Database! Please Try again.
" . mysql_error()); mysql_select_db($database) or die("Cannot select database! Please Try again.
" . mysql_error());
?>




Total Pages (3)
[1] 2 3 Next>>

Welcome User
Welcome Guest
( Login | Register )

Latest Tutorial Index - RSS Feed
Latest Resources - RSS Feed
Latest Tutorials - RSS Feed
Vote for Us
  • VixxIMG.com - Free Image Hosting, Free Myspace Image Hosting, Free Image Uploads
  • PageRank Plus - Google PageRank checking, with a twist.
Random Affilaites