The below if statements occur within a repeat region.
Why are if's acting in reverse?
The query is correct, as a sperate echo has verified.
Duplicating the query within this column makes no difference.
Is this because the 'if' is on the LEFT OUTER JOIN value?
MPID comes from a LEFT OUTER JOIN
MPID is the primary id
if($row_All['MPID']<>NULL) //does not result in an echo (but should) when a record does exist
if($row_All['MPID']==NULL)//does result in an echo when a value exists (but shouldn't)
if(!empty($row_All['MPID']))//does not result in an echo (but should) when a record does exist
if(empty($row_All['MPID'])!='')//does result in an echo when a value exists (but shouldn't)
###########################
SELECT *
FROM Members, Submits, MNotify LEFT OUTER JOIN MemPay as mp on
(mp.MPMem_ID=Members.MemID and Members.MemID=colname and mp.MPSub_ID=MNotify.FK_SubmID)
WHERE Submits.SubmID=MNotify.FK_SubmID and Members.MemID=colname
MemPay - payment table, where
MPID | MPMem_ID (actually foreign) | MPSub_ID
Members
MemID
Submits - submitted ads
SubID
MNotify - Members become notified of individual submitted ads
MNID | FK_MemID | FK_SubmID
this occurs in a repeat region where Members can view each MNotify.FK_SubmID (submitted ads, ea. of which can have a different status -- hence the conditions -- the ads may be bought, and if so, they are found in MemPay table. MPMem_ID is the buyer and MPSub_ID is the submitted ad they bought.)