Jump to content

Image question (putting image name in to a table.)


kabar916

Recommended Posts

Hello you guys.  i have a big problem.  i have a folder full of images.  Each image name is the product id#.  How can i put these id#'s into a table format so i can combine it with another table and figure out what images i am missing.  I hope this is making sense. 

 

 

Solution 1:

- Create a table that has ProductId, ImagePath.

- Cycle through all images within your folder and INSERT the values into the previously created table

- Run a join against the table you are checking for

 

Solution 2:

- Cycle through all products in your database checking in the images folder if there is an image

- If there isn't then display it

 

~juddster

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.