noobish question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

noobish question

Post by dwfait »

Me an my newbish questions...

anyway....why wont this work?

Code: Select all

if ($toid==$suser) {
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

it will, if they are equal.
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Post by dwfait »

hmmm..i get this error:

Code: Select all

Parse error: parse error, unexpected T_IF in /home/stormst/public_html/SSPN/index.php on line 623
Getran
Forum Commoner
Posts: 59
Joined: Wed Aug 11, 2004 7:58 am
Location: UK
Contact:

Post by Getran »

Then i guess you didn't close the if statement ?
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Show us more of the code.

It's most likely an error that is not on the line, but that line is where the PHP Parser had to stop operations because of an ilegal syntax procedure.
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Post by dwfait »

Oh. Nevermind. I left out the ; on a variable decleration O_o. I hate making errors like that, and then not seeing them.
Post Reply