Jump to content

Some PHP Help Pls


thetick

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.