There are several things you should do.
1. Instead
prestige.php?item=<?php echo $article['id']; ?>&rating=<?php echo $x;?>
Using
prestige.php?<?= http_build_query(array('item' => $article['id'], 'rating' => $x), '&') ?>
This will avoid the parameters. Vars $article['id'] and $x may contain characters that violate HTML or URLs.
2. Look at the Net tab in the Firebug / Chrome dev toolbar. Are there any redirects? What headers sent?
Also look at the address bar to see if prestige.php is really loaded with GET parameters.
3. To run the code, use a debugging tool, such as XDebug . Perhaps you have some code that resets vars $_GET . Personally, I use the PHPed IDE, but it's quite expensive.
source share