Im stuck. would someone please help me. I can get it to echo the number but not a image.
----------------------
<?php
if (file_exists('number.txt'))
{
$fil = fopen('number.txt', r);
$dat = fread($fil, filesize('number.txt'));
if ($dat = 1) echo '<img src="image1.png"');
if ($dat = 2) echo '<img src="image2.png"');
if ($dat = 3) echo '<img src="image3.png"');
fclose($fil); }
?>
--------------------------
the number.text is in the same dir. the image's are in the same dir
and the php code is in the same dir.
and the number.txt i set to 777 (just incase it needed to be)
thanks for any help. (I hope i wrote this in the right form if not sorry)