PDA

View Full Version : Parse error: parse error, unexpected T_STRING in /www/.../private.php


Dark Jim
09-22-2002, 10:52 AM
I have no idea what causes it, not even what hack may cause it as I'm not the only one who modifies the code on the forum this occurs. This is the entire error:

Parse error: parse error, unexpected T_STRING in /www/...../private.php on line 315

This is the part in private.php:

// ############################### start show message ###############################
if ($action=="show") {
makeforumjump();

$privatemessageid = verifyid("privatemessage",$privatemessageid);

$message = $DB_site->query_first("SELECT privatemessage.*,icon.title as icontitle,icon.iconpath,attachment.attachmentid,at tachment.filename,attachment.counter
FROM privatemessage
LEFT JOIN icon ON (privatemessage.iconid = icon.iconid)
LEFT JOIN attachment ON (attachment.attachmentid = privatemessage.attachmentid)
if ($message[userid]!=$bbuserinfo[userid]) {
$idname="privatemessage"; // This is line 315
eval("standarderror(\"".gettemplate("error_invalidid")."\");");
exit;
}

Could someone help please? :(

Admin
09-22-2002, 11:03 AM
Add " after this:
LEFT JOIN attachment ON (attachment.attachmentid = privatemessage.attachmentid)

Dark Jim
09-22-2002, 11:40 AM
Did that. Now I get:

Parse error: parse error, unexpected T_IF in /www/...../private.php on line 314

I then tried also adding the ) (should that also be there?) but it stays the same.

Xenon
09-22-2002, 11:42 AM
after the " chen told ya you have to add );

Dark Jim
09-22-2002, 11:43 AM
Argh nevermind, ofcourse also the ; has to be added.

Thanks for pointing me in the right direction. :)