I have a function and i want get values from query SELECT.
I want to do something like: obj = SELECT and next c1, c2, c3 FROM table1 where id=1INSERT INTO table2 (c1, c2, c3, c4, c5) VALUES(obj->c1, obj->c2, obj->c3, 's1', 's2')
Of course it doesn't have to be an object it can be any variable. Can u tell me how should i do this? I'm just a beginner don't blame me :)