View Single Post
Old 11-29-2012, 10:00 PM   PM User | #16
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,046
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
The missing thing right from the beginning post was the fact that both
'if' statements needed to be comparing to $loginsession...

So, the long way, but easier to see ... and troubleshoot
PHP Code:

$flag
=0;

if(
$fetch_escrow->invited == $loginsession){  
   if(
$fetch_escrow->invitedlevel ){  
   
$flag=1;  
   }
}
if(
$fetch_escrow->username == $loginsession){  
   if(
$fetch_escrow->usernamelevel ){  
   
$flag=1;
   }
}  

if(
$flag==1){
echo 
"Display Finalize Button";


Shortened way ... harder to see:
PHP Code:

if ((($fetch_escrow->invited == $loginsession) && ($fetch_escrow->invitedlevel 1)) || (($fetch_escrow->username== $loginsession) && ($fetch_escrow->usernamelevel 1))) {
// display finalize button

mlseim is offline   Reply With Quote
Users who have thanked mlseim for this post:
Dan13071992 (11-29-2012)