Connecting Database with Dynamic iFrame

You cannot simply replace the iframe code, you need to setup the code in HTML be able to receive events and dynamically reflect the data inside the HTML embedded code