29
You cannot execute PHP when you paste it into any content module. But you can use jquery/Ajax to do this for you. You "just" have to write an Ajax to pull some information from the database and load into a div or something else.
Should work? One obstacle could be, that - depending on the used editor - javascript might be filtered. But tinymce or tinyeditor (others I don't know) can be configured that way, that javascript is allowed.