maybe after db is executed, in that frame output <script
type="text/javascript">
parent.frames[1].location.href='topcontent.html';
parent.frames[2]='centercontent.html';
</script>
and by the way, if you have problems get phpMyAmin source ;] a very
advanced example of what you are tyring to do if i am right.