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 < 1 ){
$flag=1;
}
}
if($fetch_escrow->username == $loginsession){
if($fetch_escrow->usernamelevel < 1 ){
$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
}