locked
Giving ImageName properly RRS feed

  • Question

  • User1934842847 posted

    Hello,

    I am delovoping an e-commerece site for clothes. Here i am uploading many photos of just one product(with different colors).

    Now i want to give all images an qutogenerate number field as image name.

    i want to do it for all king of products.

    so please tell me how can  i do this.

     

    Thank you,

    Amee 

    Sunday, January 31, 2010 11:54 PM

Answers

  • User1649254267 posted

    mu suggession is that:

    keep the product name in  table having id feild and name feild.

    create another table for images. this table must have the feilds, productid,imageid.

    before inserting value to this table find the max of id and add 1  ;

    give that id to image as its id.

     

    best of luck

    MS

    Plz Mark as Answer if it helps u

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, February 1, 2010 2:15 AM