Hi guys!
I keep getting this T-String error on my phpBB forums when I try to post a message. I have asked at phpBB but I get no reply, so I decided to come here.
Parse error: parse error, unexpected T_STRING in /home/virtual/site21/fst/var/www/html/board/posting.php on line 490
The code surrounding this line is, from approximately 470 to 495
$sql="SELECT ip FROM phesis_poll_check WHERE ip='".$ip."' and
pollid='".$pollid."'";
$result = $db->sql_query($sql);
$post_info = $db->sql_fetchrow($result);
$ips=$post_info['ip'];
$ctime = time();
if ($ip == $ips) {
$votevalid = 0;
//require('http://www.wizardsandwars.com/already_voted.php');
exit();
if ( $votevalid == 0 ) {
{
message_die(GENERAL_ERROR, 'You have voted more than once in the poll');
}
{
$sql="SELECT vd.topic_id
FROM " . TOPICS_TABLE . " vd, " . TOPICS_WATCH_TABLE . " vr
WHERE vd.topic_id = $topic_id;
}} else {
$query="INSERT INTO phesis_poll_check (ip, time, pollid) VALUES ('".$ip."', '".$ctime."' , '"."2"."')";
$db->sql_query($query);
$votevalid = 1;
}
//// End IP track hack ////
Line 490 is:
$query="INSERT INTO phesis_poll_check (ip, time, pollid) VALUES ('".$ip."', '".$ctime."' , '"."2"."')";