php support
#1

hello, wanted to know how I can make this line Choose my usercode and not my userid

 

 

<?php echo $_SESSION["username"]; ?>

  

 

i need account code , no account name

 

 

 

 

THX VERY MUCH IN ADVANCE Smile

#2

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.

#3


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.

thx you very much , now all working man, really thx

#4

Marked as solved so moved to solved section.

 

Why am I doing this job when I have mods to do it for me?????????????????????



Forum Jump:


Users browsing this thread: 1 Guest(s)