Question
Show if field is not empty - PHP/MySQL
Is there a way I can only show bits of a page if a recordset
has entries in a certain field, automatically hiding the area if
the field is empty. (PHP/MySQL)
To put it in real terms, I have loads of products listed in a repeating table. If a product has a photo gallery related to it there is a 1 entered in 'photos' field, it has a video attached here is a 1 entered in 'videos field and likewise for reviews it will have a 1 entered in the reviews field.
What I'd like to have is a photo, video and review icon/link in the 'master table' which only appears in the repeated products that have a 1 listed in that field and have them not appear at all when there is a 0 in the field.
Can anyone help me figure it out
To put it in real terms, I have loads of products listed in a repeating table. If a product has a photo gallery related to it there is a 1 entered in 'photos' field, it has a video attached here is a 1 entered in 'videos field and likewise for reviews it will have a 1 entered in the reviews field.
What I'd like to have is a photo, video and review icon/link in the 'master table' which only appears in the repeated products that have a 1 listed in that field and have them not appear at all when there is a 0 in the field.
Can anyone help me figure it out
