Log in

View Full Version : New page new include "blah.php"



Textahead
03-07-2009, 01:20 AM
Total newbie to php.
Im trying to make a page counter that counts the number of pages each visitor views and displays a new (include fb01.php) with each page visited
This my approch so far but it dosnt seem to work.

<?php
if ($freeb == 0) {include 'fb00.php' ; $freeb ++; }

if ($freeb == 1) {include 'fb01.php' ; $freeb ++; }

if ($freeb == 2) {include 'fb02.php' ; $freeb ++; }

if ($freeb == 3) {include 'fb03.php' ; $freeb ++ ; }

if ($freeb == 4) {include 'fb04.php' ; $freeb ++ ; }

if ($freeb == 5) {include 'fb05.php' ; $freeb ++ ; }
?>

I know I may be on totally the wrong path so if someone could help it would be much appreciated

Textahead
03-08-2009, 06:55 AM
Started new aproch with session and all working now thanks to all who at least read this even if noone did help