NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP Error - Need Help Debugging

IAlsoAgree at stny.rr.com IAlsoAgree at stny.rr.com
Wed Apr 12 20:55:02 EDT 2006


I'm sure it's going to be something really obvious, but for now I just
can't seem to figure out what it is.

I'm getting the following error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING

The line of code is:
$checkreplies = "SELECT posts.postid, posts.subject, posts.body,
posts.created, users.userid, users.username, users.aim, users.created,
users.admin FROM posts, users WHERE posts.postid = \"$_GET[id]\" AND
posts.userid = users.userid AND posts.replyto = $_GET[postid] LIMIT
".($pagecount-1)*10-1.", 10";

>From what I can gather, it sounds like I misused a double quote or
misplaced a peroid. But looking at the code, I can't see where I did
either wrong.

Anyhelp would be appreciated.

Thanks,
-Joe



More information about the talk mailing list