Help with Modification Issues
Hey all, me again!
I am working on a riddle system that will quickly allow admins to create riddles, activate one at a time, and then users can answer them and get a reward once each (per riddle). However I am getting the most obnoxious error: Parse error: syntax error, unexpected '=' in /home/inekelmy/public_html/view/riddleview.php on line 29 Here is the code it's referring to: PHP Code:
|
The entire "where" part of the query has to be inside the quotation marks. Also, you can fetch everything at once rather than making multiple calls to the database
PHP Code:
|
Aaaah! Right!
Thank you so much! |
OK one more problem.
It's this chunk of code; PHP Code:
The if{} statement is supposed to make it so that users who have solved see the if{} content, and users who have not see the else{} content. If someone could point out my error here I'd be mighty thankful...and then I could run through some more tests and release the damn thing as a mod :colonu: |
I think the problem is with the syntax. Instead of
PHP Code:
PHP Code:
|
That seems to have done the trick, thank you!
|
All times are GMT -5. The time now is 05:08 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.