![]() |
|
php support - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157) +----- Forum: Ep2 Support (https://lckb.dev/forum/forumdisplay.php?fid=166) +------ Forum: Solved Topics (https://lckb.dev/forum/forumdisplay.php?fid=144) +------ Thread: php support (/showthread.php?tid=1869) |
- fonsy84 - 04-21-2013 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 ![]() - olo3007 - 04-21-2013 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. - fonsy84 - 04-21-2013 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 - Sutz - 04-26-2013 Marked as solved so moved to solved section. Why am I doing this job when I have mods to do it for me????????????????????? |