<<<<Restricted Area>>>>" . "
Sorry, you must Log In to view this Page

"); exit(); } $usrn = $_GET['usrn']; if($usrn == ""){ $usrn = $_POST['usrn']; } if($usrn == ""){ echo("

<<<<Restricted Area>>>>" . "
Problem with your username. Please Log In again.

"); exit(); } $wh = $_GET['wh']; ?>
Back Eco-$mart, Inc.  Eco-$mart Referrers
 Set Referrer Status  Help 
Error getting Data from Data Base.
" . 'Error: '. mysql_error(). '

'); } $row = mysql_fetch_array($listem); $ID = $row['ID']; $name_1 = $row['name_1']; $name_2 = $row['name_2']; $Company = $row['Company']; $address = $row['address']; $city = $row['city']; $state = $row['state']; $Country = $row['Country']; if($state == "US" OR $state == "USA"){ $Cntry = " "; }else{ $Cntry = "
".$Country; } $ZipCode = $row['ZipCode']; $phone = $row['phone']; $email = $row['email']; $Link = $row['Link']; $lunk = explode("/", $Link); $lunkcount = count($lunk); $l = $lunkcount - 1; if($lunkcount > 1){ $lank = $lunk[$l]; }else{ $lank = $lunk[0]; } $linky = explode(".", $lank); $lcount = count($linky); if($lcount == 2){ $linkout = "www.".$linky[0].".".$linky[1]; }elseif($lcount == 3){ $linkout = "www.".$linky[1].".".$linky[2]; } $trak = $row['track']; $req_by = $row['req_by']; $level = $row['level']; $dtnum = $row['dtnum']; $chunk_dtnum = chunk_split($dtnum, 2, ':'); $chunk_arr = explode(":", $chunk_dtnum); $datus = $chunk_arr[2].'-'.$chunk_arr[3].'-'.$chunk_arr[0].$chunk_arr[1]; $getcontact = mysql_query("SELECT ID FROM con_main WHERE email='$email'"); if(!$getcontact){ $bad[] = "Could not get contact identification."; }else{//got contact info $row = mysql_fetch_array($getcontact); if($row[0] != ""){ $CID = $row[0]; }else{//no info match $CID = 0; }//there is no Contact ID to work with so it is zero }//got contact info $getprods = mysql_query("SELECT name,TRI,rate FROM refprod ORDER BY name"); if(!$getprods){ $prodex = "Could not retrieve Referrer Product List."; }else{ while($rowp = mysql_fetch_array($getprods)){ $prodnames[] = $rowp[0]; $prodtris[] = $rowp[1]; $prodrates[] = $rowp[2]; }//while getting referrer products }//gotprods ?>

Requested by:  on 

Name:  

Company: 

Address: 

,  

Phone: 

Email: 

URL: 

" . " Start Web Tracking" . "

"); } ?>

Referrer Status: 

Product: 
If a Product is specified for this Referrer, Pay and Rate will be set automatically.

Pay Referrer:   (per sale)
   
If Pay is Per cent, enter Rate as whole number percentage.
If Pay is Flat Fee, enter Rate as dollar amount.

Rate: 

" . "" . "
" . "" . "
" . " Add Referrer " . "" . " New Referrers " . "" . " List Referrers " . "
" . " Your Contacts " . "" . " All Contacts " . "" . " Return to Your Page " . "
" . "
" . "Eco-$mart Products" . "
" . "" . "
©2007 - Data Base Interface - Custom Built at: " . "kwgrubbs.com" . "
"); }else{ echo("
" . "" . "
" . "" . "
" . " Eco-$mart Administration " . "" . " New Referrers " . "
" . "
" . "Eco-$mart Products" . "
" . "" . "
©2007 - Data Base Interface - Custom Built at: " . "kwgrubbs.com" . "
"); } ?>