tet3828 Posted October 24, 2006 Share Posted October 24, 2006 I must not have posed this question properly last post....22 reads to 1 response ::). Allow me to simplify...I have a database. Each Item in the database will have the following values:CATAGORYSUB-CATAGORYSTORE ITEM NUMBERNAMEDESCRIPTIONPRICWPRICE SMALL PICTUREPICTUREwhat script should I start with if I need all items in a selected catagory to be displayed in a table including an itme Name, Thumbnail, and price?Thanks again! ;D Quote Link to comment https://forums.phpfreaks.com/topic/24933-putting-the-database-to-work/ Share on other sites More sharing options...
argoSquirrel Posted October 26, 2006 Share Posted October 26, 2006 [quote author=tet3828 link=topic=112534.msg456780#msg456780 date=1161695109]I must not have posed this question properly last post....22 reads to 1 response ::). Allow me to simplify...I have a database. Each Item in the database will have the following values:CATAGORYSUB-CATAGORYSTORE ITEM NUMBERNAMEDESCRIPTIONPRICWPRICE SMALL PICTUREPICTUREwhat script should I start with if I need all items in a selected catagory to be displayed in a table including an itme Name, Thumbnail, and price?Thanks again! ;D[/quote]Ok, you just want items filtered by category?If so your SQL would be:[code]SELECT name, picture, priceFROM ItemsWHERE category = @var[/code]Is that what you're asking? Quote Link to comment https://forums.phpfreaks.com/topic/24933-putting-the-database-to-work/#findComment-114542 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.