Jump to content

renfley

Members
  • Posts

    89
  • Joined

  • Last visited

Posts posted by renfley

  1. Quick question, is i have pages like

     

    www.example.com?page=home

    www.example.com?page=about

    www.example.com?page=News

     

    Will Google Analytics be able to distinguish these queries?

    I know i have looked at the analytics site and gone through their FAQ's and help center but still havnt found the right answer

    Thx in advance

  2. Hey guys, im looking for feedback as to what direction i should be heading in! Im not looking for someone to code this im just looking for input as to find out if there is a tried and tested way of achieving this video issue?

     

    The basic idea is this

     

    i wanna add a total of 15 Video to my content area but i only wanna display 5 at a time to create a section where there is 3 pages!

     

    <CONTENT>

    vid 1

    vid2

    vid3

    vid 4

    vid 5

     

    Next button to the next 5 items!

     

    <CONTENT>

    The way i will code it is based on this

    www.example.com?page=home

    this will display the first five

    When the next is clicked it will send to

    www.example.com?page=2

    So ON!!!!!!!!!!!

     

  3. If you are wondering found a quick solution that will save on code space lol

     

    <?php

    $page = $_GET['page'];

    if ($page)

    {

    include ("include/".$page.".php");

    }

    else

    {

    echo 'Welcome to home page';

    }

    ?>

     

    Only problem is the original

    Notice: Undefined index: page in C:\wamp\www\Store Front\index.php on line 66

    Welcome to home page

  4. ALPINE You got the ball lol

     

    so ive changed this

     

    <?php

     

    $page = $_REQUEST['page'];

     

    if ($page == "home")

    {

    include ('pages/home.php');

    }

    else if ($page == "products")

    {

    include ('pages/products.php');

    }

    else if ($page == "about")

    {

    include ('pages/about.php');

    }

    else if ($page == "order")

    {

    include ('pages/order.php');

    }

    else if ($page == "contact")

    {

    include ('pages/contact.php');

    }

    else if (($page == "home") || (!$page))

    {

    // your code for the home page

    echo 'welcome home';

    }

    else

    {

    echo 'hello';

    }

     

     

    ?>

     

    The next issue is that because when the page loads its only index.php and not (index.php?page=home)

    It give me

    Notice: Undefined index: page in C:\wamp\www\Store Front\index.php on line 66

    welcome home

     

    Any suggestions

  5. K hey guys hoping one of you can help me out lol,

     

    Problem=

    When someone clicks a link it directs them to index.php?page=home

    <ul>

          <li><a href="index.php?page=home">Home</a></li>

          <li><a href="index.php?page=about">About us</a></li>

          <li><a href="index.php?page=contact">Contact us</a></li>

    </ul>

     

    What im trying to achieve is since it the same page i wanna display different content based on the page= ?

     

    i was wondering if someone could write something quick basicly

     

    <?php

              (verify to see if there is something after index.php ex: ?page=home)

            if there isnt

                echo 'welcome to my site';

            and if there is somethign there

              echo 'include/page/contact.php';

    ?>

     

    Srry if this sound messed up lol

  6. K i have a very noobish question ,

    i have 5 item in my database id,callsign,email,location,joindate    and i wnt to display them on my page,

     

    now i m at a loss i havnt done this in years and any help would be apreciated.

     

    so far ive got

    <?PHP

    mysql_connect("localhost","root","root");

    mysql_select_db("RankingSystem");

    $result = mysql_query("select * from rank_tbl");

     

    ?>

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.