Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
johannsnr

Thumbnail Product Listing

Recommended Posts

Hi Larry

I am trying to display my database products as thumbnails instead of listing them below each other and am struggling with the php code to do this. Could you perhaps assist with some ideas.

Share this post


Link to post
Share on other sites

maybe I was a bit unclear here.

 

Instead of having products displayed as below

 

product 1   price 1    quantity

product 2   price 2    quantity

product 3   price 3    quantity

 

I am trying to display as follows

 

 

product 1        product 2       product 3

price 1            price 2            price 3

 

The problem is creating the rows in a table, because each row represents different products with different product id's in the DB table

Share this post


Link to post
Share on other sites

To do this, you just need to create table cells within a row, with each cell representing a single product. The catch is in closing a row and starting a new one. If you search in these forums or online you'll find examples of the logic for this.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...