I have a script that displays job listings, it currently displays “(0)” if there are no listings in a particular category. I want it to display nothing if there are no listings and to display the actual count if there are. I also need to bring the brackets into the statement if possible, so they are not displayed if the value is “0”. Ive played with php a little but this is beyond my basic knowledge.
This is the line that currently exists, I dug around a bit and tried to implement some ideas I found around and in the PHP manual, but to no avail. I hope this is enough info about he statement.
(<?php echo $sub->assignedcareers != null ? $sub->assignedcareers : 0; ?>)
Thanks in advance!
1 Answer