Notice: You have been identified as a bot, so no internal UID will be assigned to you. If you are a real person messing with your useragent, you should change it back to something normal.
AnonBBS !!jCWdyGwJm started this discussion 15 years ago#9,072
I came into an error...
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/u489911180/public_html/index.php on line 7
The heck is this?
Anonymous D joined in and replied with this 15 years ago, 6 minutes later, 12 minutes after the original post[^][v]#160,625
@160,623 (B) > It's jewspeak for forgetting the $ on a variable.
No it isn't.
Anonymous B replied with this 15 years ago, 2 minutes later, 14 minutes after the original post[^][v]#160,626
@previous (D)
In the OP's case, it probably is. I doubt he's using OOP.
Edit: Nevermind, misread the error.
(Edited 2 minutes later.)
AnonBBS !!jCWdyGwJm (OP) replied with this 15 years ago, 3 minutes later, 18 minutes after the original post[^][v]#160,629
@previous (B)
Not using OOP.
I managed to fix that error, now I'm getting this one:
Fatal error: Class 'sqlite_open' not found in /home/u489911180/public_html/board.php on line 3
i don't think they have SQLite installed
Anonymous D replied with this 15 years ago, 59 seconds later, 19 minutes after the original post[^][v]#160,630
@160,626 (B)
But if it was just missing $ it would say "unexpected =".
T_PAAMAYIM_NEKUDOTAYIM is for the double colon.
r04r joined in and replied with this 15 years ago, 3 minutes later, 22 minutes after the original post[^][v]#160,631
r04r replied with this 15 years ago, 5 minutes later, 39 minutes after the original post[^][v]#160,644
@previous (AnonBBS !!jCWdyGwJm)
You're mixing OO and procedural. sqlite_open returns a resource, not a class so you can't later call on it with $db->queryExec. You'll have to use sqlite_query or whatever (like 24).
Also need to declare $db being global in each of the functions or they won't be able to access the variable.
And you're using $result on line 16 where it should be $row
And I won't begin over the XSS vulns & sql injection you got in there.
Did I miss anything else?
Oh and at line 7 youre probably missing a space in the sql query
(Edited 1 minute later.)
AnonBBS !!jCWdyGwJm (OP) replied with this 15 years ago, 1 minute later, 40 minutes after the original post[^][v]#160,645
@previous (r04r)
:D > yep, $db = new sqlite_open didn't work
(Edited 9 minutes later.)
definitely not protip joined in and replied with this 15 years ago, 1 hour later, 2 hours after the original post[^][v]#160,718