If statements are quite simple, but you have to follow the logic.
what you want is to print something when $paid is "No", and print nothing when $paid is 'yes'. I take it there are no other possibilities than yes and no?
First, it really helps (I find) to use the curly-bracket notation rather than the else: endif: thing.
So if you want to print something if $paid is No, you'd put:
if ($paid == 'No')
{
// what to do if paid is no
}
This will execute if $paid contains 'No'.
You also specify that you don't want to print anything if $paid is 'Yes'
well, if there are no other options than 'No' and 'Yes', then if $paid is not 'No', it has to be 'Yes'.
That means that the 'else' for this IF would be executed if $paid == 'Yes'
if ($paid == 'No')
{
// what to do if paid is no
}
else
{
// It's not no, so it must be yes
}
If you don't want to do anything when paid is yes, then you can just leave the entire ELSE off, it serves no purpose anyway.