Need help with PHP script. BIG ERROR

Discussion in 'HTML & Website Design' started by badrpg, Apr 9, 2007.

  1. #1
    site that don't work: http://arcade.kxuk.info/ (new host that i planned to move to)
    site that work: http://gravite1k.gr.funpic.org/ (my old host still using but i want to switch)

    I am exposed to some php script error on this host.
    My site: http://arcade.kxuk.info/ (also my new host)
    Reason: There's a PHP script exception about this host. On the other host which my site didn't get this odd problem. Every time i clicked on a link on my site it shows me the same page.(?id=gamehosting which will direct me to the gamehosting page but it ended up staying at ?id=home) I need a php script expert here or something.

    Heres my PHP code: switch($id) { default: include('home.php'); break; case "gamehosting": include('gamehosting.php'); break; case "gamehosting1": include('gamehosting1.php');

    well thats a short version because the long version is not necessary. Just asking how can i change the code so that it works for this host because i really like this host. I just brought a domain name which i was going to use it with this host. Thx in advance
     
    badrpg, Apr 9, 2007 IP
  2. stuw

    stuw Peon

    Messages:
    702
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #2
    switch($_GET['id']) { default: include('home.php'); break; case "gamehosting": include('gamehosting.php'); break; case "gamehosting1": include('gamehosting1.php');

    would maybe solve your problem?
     
    stuw, Apr 9, 2007 IP
    login likes this.
  3. badrpg

    badrpg Peon

    Messages:
    400
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    wow ur a genius!!
     
    badrpg, Apr 9, 2007 IP
  4. stuw

    stuw Peon

    Messages:
    702
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #4
    naah, it's a common thing ;-)
     
    stuw, Apr 10, 2007 IP