thanx a lot, i've solved the problem.
can php run two queries at the same time? for example, i insert the record to the table B, then delete from the table A.
not at the same time...
but as you said, you can 1. insert a record 2. delete it