Fatal error: Smarty error: [in index_index.php line 76]: syntax error: unbalanced parenthesis in if statement (Smarty_Compiler.class.php, line 1277) in D:\wwwweb\webgongxiang\5gongxiang\edu3721\wwwroot\Smarty\libs\Smarty.class.php on line 1092
请问,这是个什么错误

解决方案 »

  1.   

    你的限定符用的是什么??如果是 {} 在使用js的 花括号 时会出现问题也有可能是smarty嵌套错误..
      

  2.   

    {section name=section1 loop=$Name1}
    {$Name1[section1].name}
    {$Name1[section1].id}
    {/section}  if ($_COOKIE["uname"])
      {
      if ($_COOKIE["group"]==3)
    {?><a href="/member/study_add.php"><?
        }
    if ($_COOKIE["group"]==4)
    {?><a href="/member/teacher_add.php"><?
        }
    if ($_COOKIE["group"]==5)
    {?><a href="/member/course_add.php"><?
        }
      }
      else
      {
      ?><a href="issue.php"><?
      }
      ?>
    当运行时,提示说在{?><a href="/member/teacher_add.php"><? 这一行有错误,但上面又没有缺大括号
      

  3.   

    <? 
    if ($_COOKIE["uname"]) 
      { 
      if ($_COOKIE["group"]==3) 
    {?> <a href="/member/study_add.php"> <? 
        } 
    if ($_COOKIE["group"]==4) 
    {?> <a href="/member/teacher_add.php"> <? 
        } 
    if ($_COOKIE["group"]==5) 
    {?> <a href="/member/course_add.php"> <? 
        } 
      } 
      else 
      { 
      ?> <a href="issue.php"> <? 
      } 
      ?>