Hello everybody,

Not sure if the above title is correct for the issue I have but moderators please feel free to correct it.:)

Anyways my issue is whenever a user logs onto my forum, my index page seems to display the ID of the user also.........

Exactly like this:

4Welcome,JohnSmith! Logout

The '4' is basically the ID of the person, but I dont want the person logged in to see this.

I checked my index.php and login.php page and couldn't find the cause to this problem.

Could somebody please check the code in my login.php and index.php and point out where I have gone wrong.

Thanks

hi this is nathen ,can you please tell me clearly what you want please

echo $_SESSION;

You are echoing userid. Are you sure you thoroughly checked it ? :icon_rolleyes:

You are echoing userid. Are you sure you thoroughly checked it ? :icon_rolleyes:

Thanks dude for the help.......

The issue started from my previous forum:
http://www.daniweb.com/forums/thread180719.html

I just blindly copied it into my code without seeing that the code was echoing the user id....:D

I couldn't even see this echoing as I had gone code blind....;-)

Please help me in newsletter sending ,
this my code the problem is the mail is send to single person is going correctly ,if the same mail send to more number of persons getting wrong mail is going but the data display only in first mail ,the other mails getting decoded data please help me urgent,
In code i given comments for $mime_boundary i dont know its correct or not ,other wise please give me the code for newsletter for more number of peoples
thanks in advance

if(($_POST['group']<>'') && ($_POST['group']==0))
  {
	if($usrgroup='all')
	 {
	    $query="select email from cfair_adminusers order by admin_id";
		$var=mysql_query($query);
		while($arrayemail=mysql_fetch_array($var))
		 {
			$emailid=$arrayemail['email'];
			$to = $emailid;
			$subject = $subject ;
			$message=$message;
 //$mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x";
		   if($_FILES['filename']!='')
		   {
			   $tmp_name = $_FILES['filename']['tmp_name'];
			   $type = $_FILES['filename']['type'];
			   $name = $_FILES['filename']['name'];
			   $size = $_FILES['filename']['size'];
		  	  if(file_exists($tmp_name))
			   {
				    
				     if(is_uploaded_file($tmp_name))
					 {
			
						 $file = fopen($tmp_name,'rb');
				    	 $data = fread($file,filesize($tmp_name));
						 fclose($file);
				 		 $data = chunk_split(base64_encode($data));
					 }
			   } 
		   }
	 
	       $headers .= 'From:superadmin@fair.com' . "\r\n" .
			"MIME-Version: 1.0\r\n" .
			 "Content-Type: multipart/mixed;\r\n" .
			 " boundary=\"{$mime_boundary}\"";
		   $headers .= 'Bcc: [email]admin@fair.com[/email]' . "\r\n";
			'Reply-To: [email]sss@.solutin.com[/email]' . "\r\n" .
			'X-Mailer: PHP/' . phpversion();
			if(@mail($to, $subject, $message, $headers))
			{   
				 echo "Message Sent";
				 header("location:send_newsletter.php");
			}
			else
			{
			echo "Mail Not Sent";
			}
			
	    }//while
	  }//if	  
	}//if