Page 1 of 1

looking for a tutorial or some info

Posted: Fri Jul 02, 2004 9:35 am
by dmcglone
I am trying to learn how developers are making small box like html tables that only appear on the page when there is content in the database pertaining to that box.

Say for example a box called "Specials" and this box only shows on the page if there are any items on special.

Thanks
David M.

Posted: Fri Jul 02, 2004 10:34 am
by feyd
normally, for this, I run a query against the flag or whatever. If zero rows return, the box isn't shown.

Posted: Fri Jul 02, 2004 1:08 pm
by John Cartwright
you could do a query like

select `boxes` where type='specials` && quantity > 0

This is just a little extra from feyds point.. just run against a flag