Hi. I am trying to embed this code into my page.
If you take a look at the page, there is a picture of a bench as the background.
How can I embed the PHP File into the code so the picture of the bench changes with each new visitior?
I uploaded the HTML/PHP file onto my server. If you could take a look at the Page Source, it would be greatly appreciated.
Please, I've tried everything.
Kevin
Code:
<?php
$file_array = array
('http://www.kevinschaefer.net/home1.png');
$total = count($file_array);
$random = (mt_rand()%$total);
$file = "$file_array[$random]";
print("<img src=$file></a>");
?>
If you take a look at the page, there is a picture of a bench as the background.
How can I embed the PHP File into the code so the picture of the bench changes with each new visitior?
I uploaded the HTML/PHP file onto my server. If you could take a look at the Page Source, it would be greatly appreciated.
Please, I've tried everything.
Kevin