Welcome Guest, Not a member yet? Register   Sign In
Shoot me now, I need JOIN help
#7

[eluser]slowgary[/eluser]
That was the topic of another thread already, using a table for product images or not. Ultimately I decided the table was the best root because the alternative would require a directory scan and looping through the entire returned array from that scan. Additionally, the database table allows for image descriptions or other info.

If there were only one image per product I would skip the table and just use a suffix of the product sku for the filename. I will likely name the images with some sort of suffix anyway, just to keep it organized.

I'm not an SQL master, but it seems that this would be a fairly common requirement from a query. So short of using a JOIN and skipping duplicate products in PHP, is there no way to query one table and tack onto each row a JOINed row LIMIT 1?


Messages In This Thread
Shoot me now, I need JOIN help - by El Forum - 05-26-2009, 09:58 PM
Shoot me now, I need JOIN help - by El Forum - 05-26-2009, 10:32 PM
Shoot me now, I need JOIN help - by El Forum - 05-26-2009, 11:43 PM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 12:40 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 06:26 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 06:45 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 08:22 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 08:43 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 09:10 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 09:25 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 09:28 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 09:30 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 09:51 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 09:53 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 10:08 AM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 02:34 PM
Shoot me now, I need JOIN help - by El Forum - 05-27-2009, 07:00 PM
Shoot me now, I need JOIN help - by El Forum - 05-28-2009, 02:08 AM
Shoot me now, I need JOIN help - by El Forum - 05-28-2009, 07:33 AM
Shoot me now, I need JOIN help - by El Forum - 05-28-2009, 07:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB