Results 1 to 2 of 2

Thread: New page new include "blah.php"

  1. #1
    Join Date
    Mar 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default New page new include "blah.php"

    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
    Last edited by Textahead; 03-08-2009 at 06:54 AM.

  2. #2
    Join Date
    Mar 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default solved

    Started new aproch with session and all working now thanks to all who at least read this even if noone did help

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •