title: PHP $_GET stopped working
body: <p>So i've been using $_GET to access articles by passing the article ID through the URL and reading this id in the next page so that all the values relating to the article can be drawn. </p>
  
  <p>The passing code is as follows </p>
  
  <pre><code>while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC)) {
              echo '&lt;td&gt;&lt;a href="Article.php?id=' . $row['ArticleID']. '"&gt;&lt;img class="cover" src="' . $row['CoverImage']. '"&gt;&lt;/a&gt;&lt;/td&gt;';
  </code></pre>
  
  <p>While there are articles, get the images, make the images links and then when the image is clicked append "id=#" to the end of the url. </p>
  
  <p>And as expected, when the link is clicked i get this. </p>
  
  <pre><code>www.r3gamers.com/Article.php?id=1
  </code></pre>
  
  <p>All seems fine so far, and yet using this code to then retrieve the id and place it in a variable </p>
  
  <pre><code>if ( (isset($_GET['id'])) &amp;&amp; (is_numeric($_GET['id'])) ) {
          $articleid = $_GET['id'];
      } elseif ( (isset($_POST['id'])) &amp;&amp; (is_numeric($_POST['id'])) ) {
          $articleid = $_POST['id'];
      } else {
          echo '&lt;p class="error"&gt;This page has been accessed in error.&lt;/p&gt;'; exit();
      }
  </code></pre>
  
  <p>Always ends up with the error returned, it can't see the value even though it has been successfully appended to the URL, and i can't tell why.</p>
  
  <p>It's worth stating that this exact code was working fine on the live website up until today, i made no changes to the code (except moving the header into an inclusion file, a header which has no effect on this piece of code) and there seems to be no reason that it has stopped. 
  For safe measure, i even reverted to code that was over a week old (WAY before the error started happening), and that hasn't fixed the error. </p>
  
  <p>EDIT: in response to replies, i've tested the script with var_dump($_GET) which returns "Empty". </p>
  
  <p>error_reporting(E_ALL);
  ini_set('display_errors', 1);
  This suggestion however gives no feedback (that i can find) at all presumably meaning that no errors with the script are found?</p>
  
  <p>EDIT3: As no errors have been found, i created two fairly simple files to test that getters and setters are working.</p>
  
  <p>testset.php</p>
  
  <pre><code>&lt;a href="testget.php?id=1"&gt;&lt;img class="cover" src="Pictures/TheLastOfUs/Cover.jpg"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>testget.php</p>
  
  <pre><code>&lt;?php
  
  var_dump($_GET);
  ?&gt;
  </code></pre>
  
  <p>This results in this output</p>
  
  <pre><code>array (size=1)
    'id' =&gt; string '1' (length=1)
  </code></pre>
  
  <p>And just to ensure that it actually is working i tried a different value</p>
  
  <pre><code>array (size=1)
    'id' =&gt; string 'thisisatestid' (length=13)
  </code></pre>
  
  <p>Surely this means that it's not my project that's "broken" but at worst just the one or two files mentioned above? (probably just article.php)?</p>
  
  <p>EDIT4: Even further testing (changing the initial link from article.php?id=" .row .... " to testget.php?id=" .row .... " shows that index is definitely still working as expected, outputting the generated ID's via var_dump</p>
  
  <p>So, it's just the article.php page that's the problem then. </p>
  
  <p>EDIT5: VAR_DUMP($_GET); on "Article.php" now retrieves the id from the URL but the GET test does not, so it's still not working (although i feel progress is being made, finally)</p>
  
  <p>EDIT6: I've managed to get the id passing working perfectly on localhost, and yet after uploading the new working copy to godaddy, it still doesn't work. The $_GET value is being passed as checked by var_dump, but the getter isn't succeeding (ironically) because it can't find a get value ... which makes absolutely no sense. </p>