PDA

View Full Version : Can't figure out this error!


BenSjoberg
Wed 26th Nov '03, 4:54pm
I keep getting this error:

Parse error: parse error, unexpected $end in c:\program files\apache group\apache\htdocs\twf1\upload\templates\forumhom e-postlevel1.php on line 17

The code of that file is:


<?php
$forumid = $HTTP_GET_VARS['forumid'];

if($numt==0) {
include("forumhome-nothreads.html");
} else {
$threadgetquery = 'SELECT * FROM `threads` WHERE `forumid` =$forumid;
$threads = @mysql_query($threadgetquery);
while ($rowthreads = mysql_fetch_array($threads)) {
$timethread = $rowthreads[6];
$timethreadHMA = date("F j, Y g:i a", $timethread);
$threadid = $rowthreads[1];
$threadsubject = $rowthreads[2];
$threadusername = $rowthreads[7];
include("forumhome-postlevel1.html");
}
}
?>

Any ideas?

Chroder
Wed 26th Nov '03, 5:25pm
Most visisble,

$threadgetquery = 'SELECT * FROM `threads` WHERE `forumid` =$forumid;

Missing an end single quote. Fix that and see if there's anything else :)

BenSjoberg
Wed 26th Nov '03, 5:38pm
Most visisble,

$threadgetquery = 'SELECT * FROM `threads` WHERE `forumid` =$forumid;

Missing an end single quote. Fix that and see if there's anything else :)

THANK YOU!!!! :D :D :D

I figured it was something stupid like that but I couldn't see it. :o

Chroder
Wed 26th Nov '03, 5:55pm
The PHP syntax highlighting gives some hints sometimes ;)