Export to SQL function

Hey crew.



I’m looking for a php function that will export a single product, to sql based on product_id. I realize that this is not very hard but I am hoping something might be already written as I am really pressed for time right now.



If anyone has something like this or something close I would really appreciate if they would share it with me.



Thanks,



Cheers,



Casey

Do you want to export options, pictures, etc or just specific info?

Need everything so if I was to delete all entires in the database with the same product_id I could execute this sql and insert it all back into the db.



I understand that I will have to create a seed product id to tie all the relations together, another option is simply a php script that will copy a product and all its info from one database to another.



Thanks for the quick reply!



Cheers,



Casey