PHP running JavaScript in a Block

PHP running JavaScript in a Block

by juan nenna -
Number of replies: 0

Hi everyone, so I have a php file that gets variables from a database and then in the same file theres a small javascript that using those variables generates a banner that will in turn be posted inside the moodle block, however, i can't seem to find a way to do this. 

any thoughts?


thanks!

Attached is a copy of part of the code (not all for security reasons)

Average of ratings: -