hi guys!

I'm trying to insert some php code into the simple gallery, I tried with this, but it doesn't work.

Can u help me? I couldn't found something on internet.

Thanks in advance...

Here is the code:

<script type="text/javascript">

var img = '<?php $imagen="imagenes/banners/$banners->id/n0-s0.jpg"; echo $imagen ?>'
var enlace = '<?php echo $banners->link ?>'
var tit = '<?php echo $banners->titulo ?>'

var mygallery=new simpleGallery({
wrapperid: "simplegallery", //ID of main gallery container,
dimensions: [1280, 510], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["img", "enlace", "tit", ""]