Support » Themes and Templates » php problem…

  • okay. So i loaded a new theme. which I think is great.

    ‘cept my problem is I don’t know php.

    the photos rotate, randomly like the code says. but once I add more then when I load the page a blank white space sits in the place of the photo. /

    I have named all my files properly. yet can’t work it out.. check it out below.

    <?php
    function header_graphic() {
    echo “/images/”;

    $num=rand(0,1); <!–this is the original I changed it to (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20); /–>
    echo “dream”.$num.”.jpg”;
    };
    ?>
    <!– The header image is aleatory change. You can show how many images you want (526 x 265 pixels), but you can must name them like this: dream0.jpg ; dream1.jpg, dream3.jpg…. and so on… and make the appropriate modification in the header_graphic function above.
    –>

    pls hlp
    Joe

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘php problem…’ is closed to new replies.