Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
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:
__________________
My Mods Site (1.3.4, 2020 Mods) |
#2
|
||||
|
||||
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:
__________________
asp.net stole my soul. |
#3
|
||||
|
||||
Aaaah! Right!
Thank you so much!
__________________
My Mods Site (1.3.4, 2020 Mods) |
#4
|
||||
|
||||
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
__________________
My Mods Site (1.3.4, 2020 Mods) Last edited by Abronsyth; 02-01-2017 at 11:43 AM. |
#5
|
||||
|
||||
I think the problem is with the syntax. Instead of
PHP Code:
PHP Code:
__________________
asp.net stole my soul. |
#6
|
||||
|
||||
That seems to have done the trick, thank you!
__________________
My Mods Site (1.3.4, 2020 Mods) |
|
|
What's New? |
What's Hot? |
What's Popular? |