add Images to a product .. how?

Help
Kimo
2005-10-23
2013-04-15
  • Kimo

    Kimo - 2005-10-23

    Hi there

    How do i attache an image to a product.?
    I can see - there is an image for the product
    here :

    http://www.co-comp.co.uk/shop/shopping/

     
    • weekyd

      weekyd - 2005-10-24

      depends how many images you'd want to add. if you have, say, 7 images for ALL your products then you could make another table and store the image path and relate the id_no of that table in the product table.

      so..it would be something like

      image_table
      id.....image_path
      1......hot.gif
      2.....veg.jpg

      product_table
      id... name... des.....   image_id
      4.... curry...  hot curry  1
      5...  vege...  blahblah    2

      if all your product will have diff images then in the product table under image_id just store the image path..hope it helps

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks