thetick Posted January 27, 2010 Share Posted January 27, 2010 if I have a script like this: <?php $fetch_users_data = mysql_fetch_object(mysql_query("SELECT * FROM `members` WHERE username='".$_SESSION['username']."'")); $ref_id=$fetch_users_data->id; if(isset($_GET['join'])){ $referral_ID = $_GET['join']; $referral_string= "?join=".$referral_ID; } $membername= $fetch_users_data->username; //don't change ?> and I want to add a $subid whitch code is correct: $subid = $_SESSION['username']; or $subid = $membername; please someone who knows php and not just quesses. thanks guys. let me explain a bit better what I want. I want $subid to be the username curently logged in. This is not the hole script ... Quote Link to comment https://forums.phpfreaks.com/topic/190048-some-php-help-pls/ Share on other sites More sharing options...
RussellReal Posted January 27, 2010 Share Posted January 27, 2010 $subid = $membername; Quote Link to comment https://forums.phpfreaks.com/topic/190048-some-php-help-pls/#findComment-1002679 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.