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 ... 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; Link to comment https://forums.phpfreaks.com/topic/190048-some-php-help-pls/#findComment-1002679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.