0

Hi guys! How you doing? Well I'm having a little headache...here is it :D

$emaillist=mysql_result($checkemail, 0);
				print_r ($pieces = explode(",", $emaillist)); //printing values for debugging
							$useremail_array=mysql_fetch_array($useremail_query);
				extract($useremail_array);
				print_r ($user_em); //for debugging
				if(in_array('$user_em',$pieces))
				{
				?>
                <div class="discussposttext">
            
      			<form action="more.php?id=<?php echo $id; ?>" method="post" id="jstest">
                In reply to ID:<input type="text" name="inreplyto" />
            <textarea class="big2" id="postcomment" name="postcomment"></textarea> &nbsp;<input type="submit" name="submitcomment" value="Comment" />
            </form>
      		</div>
				<?php 
				}
					else
					{
						?>

      		<div class="discussposttext">
            Sorry! Settings says only group memebers are allowed to participate!
      		</div>
			<?php } 
						
			?>

Now see the output

Array ( [0] => xyz@gmail.com [1] => rty@gmail.com ) //output of $pieces
xyz@gmail.com //output of $user_em
Sorry! Settings says only group memebers are allowed to participate! //output of boolean

lol I'm sure somewhere I'v been complete stupid because you can see xyz@gmail.com exists in the array but boolean returning false :?!

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by TechySafi
0

what I can say?? Just LOL!

Thanks mate :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.