copying image from one table to another

4 posts by 2 authors in: Forums > CMS Builder
Last Post: March 7, 2014   (RSS)

By markr - March 6, 2014

I can use php mysql insert code to copy a record from one table to another but I lose the image field. Is there a way to copy the image field to the new record?

By gregThomas - March 6, 2014

Hi markr,

I can give you some code to copy the images to the new section, but I just wanted to check are you still using the records from the original section as well? I'm trying to work out if we just need to point the uploads at the new section, or duplicate the them and the images.

Thanks!

Greg 

Greg Thomas







PHP Programmer - interactivetools.com

By markr - March 6, 2014

Yes, I need the old record in table_1 and the duplicate record in table_2 to have the same image.