04-21-2013, 12:45 PM
Do you need it for paymentwall? If yes then you can do it like that:
Add this to your donation page or whatever is it for
<?PHP
} else {
$sqlcon = mysql_connect( $ip , $sqluser , $sqlpw ) or die( mysql_error() );
$mysql = mysql_select_db( $userdb , $sqlcon) or die( mysql_error() );
$uid = mysql_query("SELECT user_code from bg_user WHERE user_id = ".$_SESSION[username]."");
$uids = mysql_fetch_array( $uid );
?>
Then for example if you want this for paymentwall then replace [uSER_ID] in widget with
<?php echo $uids[user_code]; ?>
Hope you got it and it works.

