Can't figure out this error!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BenSjoberg
    Senior Member
    • Jun 2003
    • 132

    Can't figure out this error!

    I keep getting this error:

    Parse error: parse error, unexpected $end in c:\program files\apache group\apache\htdocs\twf1\upload\templates\forumhome-postlevel1.php on line 17
    The code of that file is:

    PHP Code:
    <?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?
    Last edited by BenSjoberg; Wed 26 Nov '03, 11:57am.
    http://www.wdwforum.net/smallsig.php
  • Chroder
    Senior Member
    • Dec 2002
    • 1449

    #2
    Most visisble,

    Code:
    $threadgetquery = 'SELECT *  FROM `threads` WHERE `forumid` =$forumid;
    Missing an end single quote. Fix that and see if there's anything else

    Comment

    • WDWInsider
      Senior Member
      • Jun 2003
      • 132

      #3
      Originally posted by Chroder
      Most visisble,

      Code:
      $threadgetquery = 'SELECT *  FROM `threads` WHERE `forumid` =$forumid;
      Missing an end single quote. Fix that and see if there's anything else
      THANK YOU!!!!

      I figured it was something stupid like that but I couldn't see it.
      http://www.wdwforum.net/smallsig.php

      Comment

      • Chroder
        Senior Member
        • Dec 2002
        • 1449

        #4
        The PHP syntax highlighting gives some hints sometimes

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...