Ok this is starting to piss me off.
I have a little project and i know some basic stuff about mysql and php but i cant figure this one out.
I need to copy one row in a table to another table, so i searched for some scripts to do this and i found a sql script (thnx to original poster):
Code:
UPDATE old_data SET move="MARKED";
INSERT INTO somewhere... SELECT where move="MARKED";
DELETE FROM old_data WHERE move="MARKED";
I can run this sql query in phpmyadmin wihout any problems and it does what i need it to do the only thing is when i try to implement this in my php page i cant get this to work.
I know i need to use mysqli_multi_query (at least i think) but after 4 hours searching and trying i cant get it to work.
So if anyone can help me with this or point me in the right direction. it would help me a lot.
Thnx in advance!
|