include 'members/config.php'; // change affiliates to whatever directory you installed the software to mysql_connect($hostname, $username, $dbpass); mysql_select_db($dbname); $refid = (! empty($_REQUEST['refid'])) ? $_REQUEST['refid'] : null; $query="SELECT * FROM Affiliates WHERE AffID='$refid'"; $results=mysql_query($query); if ($row=mysql_fetch_array($results)) { $fname=$row[FName]; $lname=$row[LName]; $affid=$refid; } else { // this part is if there is no referer. $fname="Carlos"; // change this to any name you wish $lname="Garcia"; // change this to any name you wish $affid="1"; // change this to any name you wish } ?>
Phone: 519-439-5852 Email: Carlos@WealthySecrets.net |