TheFallen Posted December 6, 2014 Posted December 6, 2014 Hey all , this is my first PHP mccodes mod ( so expect all the errors ;p ) the problem is when I am testing this locally all it is giving me is a blank screen. A friend suggested to look at the functions but from a first glance I could'nt see anything. There was a few things at first that I thought was the problem but that did'nt seem to help. Here's my code: http://pastebin.com/KmGhtYpf Thanks in advance Quote
SRB Posted December 6, 2014 Posted December 6, 2014 Hey all , this is my first PHP mccodes mod ( so expect all the errors ;p ) the problem is when I am testing this locally all it is giving me is a blank screen. A friend suggested to look at the functions but from a first glance I could'nt see anything. There was a few things at first that I thought was the problem but that did'nt seem to help. Here's my code: http://pastebin.com/KmGhtYpf Thanks in advance Try this; http://pastebin.com/nRGpyjfp Quote
TheFallen Posted December 7, 2014 Author Posted December 7, 2014 Thanks :) Not sure if its fully working due to me testing locally. But with that in mind it still gives me a blank screen. Quote
Zettieee Posted December 7, 2014 Posted December 7, 2014 Turn on error reporting in wamp/xamp/lamp. Make sure you don't have error_reporting(0); in header/globals. Quote
TheFallen Posted December 7, 2014 Author Posted December 7, 2014 Turn on error reporting in wamp/xamp/lamp. Make sure you don't have error_reporting(0); in header/globals. Thanks for the tip , it seems to moaning about this " Parse error: syntax error, unexpected '}', expecting ',' or ';' in /var/www/html/wonder.php on line 44" I'll see what's doing what. Quote
Zettieee Posted December 7, 2014 Posted December 7, 2014 if ($chance <= 45) { $crystals = mt_rand(2, 45); $sql = "UPDATE `users` SET `crystals` = `crystals` + " . $crystals . " WHERE `userid` = " . $ir['userid']; echo "While you were wondering, you have stumbled across {$crystals} Silver Coins! <hr /> <a href='wonder.php?action=wonder'>Keep Wondering</a><br /> <a href='wonder.php'>>Head Back</a>"; } Change to: if ($chance <= 45) { $crystals = mt_rand(2, 45); $sql = "UPDATE `users` SET `crystals` = `crystals` + '".$crystals."' WHERE `userid` = '".$ir['userid']."'"; echo "While you were wondering, you have stumbled across {$crystals} Silver Coins! <hr /> <a href='wonder.php?action=wonder'>Keep Wondering</a><br /> <a href='wonder.php'>>Head Back</a>"; } Quote
TheFallen Posted December 7, 2014 Author Posted December 7, 2014 (edited) Thanks Looked at my original code added the fix's Is there some thing I'm missing? Parse error: syntax error, unexpected '$jailtime' (T_VARIABLE) in your code on line 58 Edited December 7, 2014 by TheFallen Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.