Jump to content

kriffer

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kriffer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. kriffer

    help

    i see.. well the forums have done me good already... this line you type first time i put it in my code while you were replying and it works.. this line [code] <?php       if ($_GET['x']) {           include($_GET['x'] . '.php');       } else {           include('home.php');       }    ?>[/code] worked.. thxnk alot i'll be back on tommorow
  2. kriffer

    help

    ok remember im new to all this.. but ok.. see that php looks different then the php i had in there.. so thats what your suggesting i go with and ok here if this helps any better.. what i was trying to do was create one page with dynamic content
  3. kriffer

    help

    ok goto www.kriffer.biz/beta .... ok the whole point of [code]<?php if($x=="" ){include"home.php";} else{include"$x.php";} ?>[/code] this was to keep the banner and footer not change at all.. and only that content the "include' i.e. include"home.php"; change only that data.. so if you clicked on servers or something else on that menu.. it will go and display the data.. right now it just links to the files i just want it to change the inside data the content that says servers. or matches. or about us. or whatever..
  4. kriffer

    help

    ok that worked. yess. but now take for example this site.... www.mwnx.net click on either downloads or network it doesnt matter. look at the url... it doesnt include like index.php or downloads.php like , now that i just inserted the page it shows up like this sites url with index.php?showtopic=96453
  5. kriffer

    help

    im new to php, im just learnin this and css .. i tried to do somethig which i thought was simple but am having a problem with... ok heres the problem.. im makin a menu.. but the files arent coming up on the page when you click on the link so this is my menu [code]<div id="navcontainer"> <ul id="navlist"> <li id="active"><a href="?" id="current">Home</a></li> <li><a href="forums">Forums</a></li> <li><a href="?x=servers">Servers</a></li> <li><a href="?x=matches">Matches</a></li> <li><a href="?x=about_us">About Us</a></li> </ul> </div>[/code] and this is the php in my page [code]<?php if($x=="" ){include"home.php";} else{include"$x.php";} ?>[/code] so now when i want to goto the Servers page or the Matches page, it just displays it in the url like this [code]http://www.kriffer.biz/beta/?x=servers[/code] so whats the problem?
×
×
  • 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.