looking for a tutorial or some info

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dmcglone
Forum Newbie
Posts: 20
Joined: Sun Sep 28, 2003 7:54 pm
Location: Columbus, Ohio

looking for a tutorial or some info

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

normally, for this, I run a query against the flag or whatever. If zero rows return, the box isn't shown.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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
Post Reply