I run a query this will come up with 0-2 results.
I think the logic will work like this:
if $row->time == morning then display afternoon
if $row->time == afternoon then display morning
if $row->time == both then kickout because its unavailable
But how do I get around that there this:
if there are two rows being morning and afternoon?
If both or morning and afternoon are assigned they will run simliar code.
How should I structure my conditional statements based on the above?