Thanks for the reply!
Just tried this but it doesn't rotate the text/div
heres the page
HTML
HTML Code:
<h1><span class="style12">Restaurant of the month </span><br /> </h1>
<div class="altdiv">
<div>
PHP Code:
<?php
$img = array();
$img[] = '<div>The original part to this attractive stone built hotel dates back to the 18th century when it was a
famous coaching inn. Over the years it has been tastefully extended to offer a wide range of facilities including accommodation, conference facilities, wedding facilities including a civil licence, a restaurant and lounge bar, a hair and beauty salon and a gymnasium. <br />
</div>';
$img[] = '<div>More textual content!</div>';
$img[] = '<div>Even more textual content!</div>';
$count = (int)file_get_contents('count.txt');
echo $img[$count];
if ($count == count($img) - 1){
$count = 0;
}else{
$count++;
}
$file = 'count.txt';
$f = fopen($file, 'w');
fwrite($f, $count);
fclose($f);
?>
Bookmarks