Thread: NATs users-
View Single Post
Old 09-29-2005, 11:00 PM  
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
If anyone else is interested, I did this to solve my problems.
Perhaps it'll help you, too.

PHP Code:
function getAffiliate($_NATS) {
    list(
$campaignID) = explode(":"base64_decode($_NATS));

    
open_db();
    
$sql "SELECT `a`.`username` FROM `accounts` as `a`,`campaigns` as `c` WHERE `a`.`loginid` = `c`.`loginid` AND `c`.`campaignid` = '$campaignID'";
    
$result mysql_query($sql);
    
$row mysql_fetch_assoc($result);
    
close_db();

    return 
$row['username'];

quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote