04-21-2013, 12:44 PM
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

|
php support
|
|
04-21-2013, 12:44 PM
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 ![]()
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.
04-21-2013, 01:18 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. thx you very much , now all working man, really thx
04-26-2013, 09:50 AM
Marked as solved so moved to solved section. Why am I doing this job when I have mods to do it for me????????????????????? |
|
« Next Oldest | Next Newest »
|