Apologies if this is something I should know. I am editing some PHP code that I inherited from a predecessor. I have added the following printf statment:
printf("
CRISSP: ".$row[‘CRISSPID’]."
Resolve: ".$row[‘ResolveID’]."
iCase: ".$row[‘iCaseID’]."
SHIP: “.$row[‘SHIPID’].”
The code works and gives the following output:
CFT: 24532
CRISSP: 915107965
Resolve: GM2/yyy/zzzz
iCase:
SHIP:
In this case, the client does not have a iCase number or a SHIP number. I want to make this statement conditional so that it only displays a line for the number if the field is not null or empty. So I want it to look like this:
CFT: 24532
CRISSP: 915107965
Resolve: GM2/yyy/zzzz
Is there an easy way to do this?
Thanks!