Is it only your "Mastered" page that is blank, or do all of your pages go blank?
Try adding this code before line 221:
$database = new Database;
So it should look like:
$database = new Database; $tcginfo = $database->get_assoc("SELECT * FROM `tcgs` WHERE `name`='SuperSTAR' LIMIT 1");
@Bloo Just the "Mastered" page when I click on a badge to view the mastered deck. Other pages aren't affected.
I added the code - still not working, unfortunately. Here's the live page in case you'd like to have a look at it: http://yehet.sky-ninja.org/superstar.php?mastered
Thank you again in advance!
@Bloo Added the code, Bloo! These errors are being displayed on the main page of superstar.php:
Notice: Undefined variable: total in /yehet/func.php on line 394
Notice: Undefined variable: collecting in /yehet/func.php on line 404
Notice: Undefined variable: mastered in /yehet/func.php on line 418
Notice: Undefined variable: pending in /yehet/func.php on line 452
@heyariadne Ok, I think I finally understand the problem. XD It's just the way that the
$_SERVER['QUERY_STRING'] global works. I attached superstar.php with a workaround, and also superstar2.php which removes that code completely in favor of using
$_GET (better than QUERY_STRING in my opinion, but required some re-organizing). Take your pick. :) Didn't test them for errors though, so just let me know if either one gives you problems.