forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: broomsy on October 13, 2005, 12:55:21 pm

Title: Cannot add php code
Post by: broomsy on October 13, 2005, 12:55:21 pm
I am trying to add this PHP code
Code: [Select]
<?php $array = array('1'=>'templateimages/picture1.jpg','2'=>'templateimages/picture2.jpg','3'=>'templateimages/picture3.jpg','4'=>'templateimages/picture4.jpg','5'=>'templateimages/picture5.jpg','6'=>'templateimages/picture21.jpg','7'=>'templateimages/picture25.jpg','8'=>'templateimages/picture29.jpg'); $arraycount count($array);$rnum rand(1$arraycount); print "<img src=\"$array[$rnum]\" alt=\"Music Box - Past clubbers and special guests\" />";?>but nothing is happening. Is there a way to add php to the template?
Title: Re: Cannot add php code
Post by: Nibbler on October 13, 2005, 01:42:30 pm
Not a bug report.