Welcome Guest, Not a member yet? Register   Sign In
Newbie: Best methods for working with Multiple Images
#2

[eluser]Référencement Google[/eluser]
[quote author="ywftdg" date="1215983625"]In the past I would store the image paths(comma separated) in my table. Then in the front end explode the array and loop through to spit them out.[/quote]

Two things I can say here:
- Nothing that what you have done in the past is impossible with CI
- It's not a good way to store your images paths into 1 field and explode it after, I'll try explain how you should do below

What you may do is an image table separate from your portfolio table.

Let's say:
image_id | portfolio_id (foreign key to your main porfolio table) | image_path

Doing so, you can have how much images you want for a given portfolio item, then just retrieve them using a Join query.


Messages In This Thread
Newbie: Best methods for working with Multiple Images - by El Forum - 07-13-2008, 10:13 AM
Newbie: Best methods for working with Multiple Images - by El Forum - 07-13-2008, 12:15 PM
Newbie: Best methods for working with Multiple Images - by El Forum - 07-13-2008, 10:37 PM
Newbie: Best methods for working with Multiple Images - by El Forum - 07-14-2008, 07:49 AM
Newbie: Best methods for working with Multiple Images - by El Forum - 07-14-2008, 08:18 AM
Newbie: Best methods for working with Multiple Images - by El Forum - 07-14-2008, 08:37 AM
Newbie: Best methods for working with Multiple Images - by El Forum - 07-15-2008, 05:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB