php - How to display thumbnails with category by category -


I have the above SQL.

There are three categories, web design, logo and print.

I want to display them as html.

Originally dragging the thumbnail image and name from the database category by category.

I'm not sure how to do this.

I would appreciate any input or assistance.

Thanks in advance.

Well, ask the first question of DB for your categories (I think you have Categories The names in the table are:

  $ res = mysql_query ("Select c.name AS cname, p.name AS pname, p.image omc_products p Skip excluded categories C.category_id = c.id command, though its HTML, like echo 'and lieutenant; li> gt; & lt; img src =' '. $ Line [' image '] ./ / gt; ". $ Row [' Pname '].' '. $ Line [' cname '] ';} echo '';}  

Comments