I am a novice in php and hope you may be able to help me.
I have a db that shows a range of subjects and individual numbers for each.
I need to create a form that shows these results to the user.

ie apples 10
pears 7
peaches 8

when the result is 0 then both the name and quantity are not displayed.
It would be even better if the results can be moved up when result is 0
ie apples 10
pears 7
peaches 8
when pears = 0 becomes

apples 10
peaches 8

Is this possible and can anyone help.
This is on a not for profit website.
bespoke-bulgaria.co.uk (Under Development)