php求助!!!Parse error: syntax error, unexpected '<' in C:\AppServ\www\faq.php on line 23

测试的时候错误:Parse error: syntax error, unexpected '<' in C:\AppServ\www\faq.php on line 23

主要就是php的问题
<?php include('config.php');?>

<?php  $result = mysql_query("SELECT * FROM main ORDER BY id DESC")

?>



   <?php
//根据管理员登录与否,输出不同的链接
if($_SESSION['Admin'])
{

echo <a href="login_post.php?logout=1"><strong>退出管理</strong></a>;
}
else
{
  echo <a href="login.php"><strong>登录管理</strong></a>;
<
}
      ?>
<?php 
  while($info = mysql_fetch_array($result))
  {
    $id      = $info['id'];
$hide    = $info['hide'];
$mesname = $info['mesname'];
$email   = $info['email'];
$ip      = $info['ip'];
$time    = $info['time'];
$content = $info['content'];

if($info['reply_content'])
{
$reply_time    = $info['reply_time'];
$reply_content = $info['reply_content'];
}


?>
                <p>PASSENGER:<br />
                    <?php echo $mesname; ?><br />
                      <br />
                    TIME:<br />
                    <?php echo $time; ?></p>                </td>
              <td width="78%" align="left" valign="top"> <br />
                  <table width="95%" border="0" cellpadding="2" cellspacing="0">
                    <tr>
                      <td width="34%" align="left">E-mail: <?php echo $email;?> </td>
                      <td width="26%" align="left">IP: <?php echo $ip; ?></td>
       <?php
                     //
                        if($_SESSION['Admin'])
                      {
                    echo $content;
                      }
                      else
                      {
                   echo "dengdaiqueren";
                     
       }
                      ?>
        <?php
   if($reply_content)
   {
   ?><tr>
                  ADMINASTRATOR
                  <br />
                    <br />
                  TIME:<br /><?php echo $reply_time;?> </td>
              <td width="78%" align="left" valign="top"> <br />
                <br />
                    <tr>
                      <td><?php echo $reply_content;?>
        <?php
      }//endforeach
     }else{//endif
  ?>
    <h3>暂时没有留言</h3>

 

$result = mysql_query("SELECT * FROM main ORDER BY id DESC")
改:
$result = mysql_query("SELECT * FROM main ORDER BY id DESC");
 

本文出自 “批处理、cracker专题” 博客,谢绝转载!

你可能感兴趣的:(PHP,职场,页面跳转,休闲)