Jump to content

piscatorhominum

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

piscatorhominum's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That solved the problem. Thank you guys for the help. It is much appreciated.
  2. You're right. I might as well. But I feel like it would be unnecessary since my "index.php" only contains: <?php include 'http://xxx/article_fetch.php';?> and I already posted the "article_fetch.php" script.
  3. djfox: It's on my server kenrbnsn: I uploaded the code you gave me and then visited the page THAT INCLUDES THE SCRIPT and it had empty parentheses. I put those words in caps because the script is included on my website, not in the "index.php" file itself. I think this has something to do with it because when i point my browser to the actual script with the "id" variable in the URL it prints: Array ( [id] => 7 )
  4. my "$_get" function is not retrieving the "id" variable from the URL (".../index.php?id=1") I have no clue why it isn't "getting" the variable. I don't get any error messages from the server and I've tried to echo the variable and it just won't read "id" from the URL <?php $article = $_GET['id']; if ($article == 1) { include 'article1.php'; } elseif ($article == 2) { include 'article2.php'; } elseif ($article == 3) { include 'article3.php'; } elseif ($article == 4) { include 'article4.php'; } else { include 'no_article.php'; } ?>
×
×
  • 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.