我有一个数据库,里面有标题(title),内容(content)等关键字,我查询显示的时候想只显示标题,然后点击点击标题弹出一个页面里面显示内容等其他信息。请问如何让查询结果的标题是URL得那种属性啊。就是让<?php echo ($row[title]);?>   输出的内容是链接的那种,然后点击就能进入

解决方案 »

  1.   

    你title存的是什么啊,如果直接是链接,就可以
     <a href="{$row['title']}" target="_blank">点击查看详情</a>就可以实现了
      

  2.   

    多看看LS的回帖,就知道他的风格了, LZ题目我表示没看懂.
      

  3.   

    <a href="detail.php?id=<?php echo $row['id']?> " target="_blank"><?php echo $row['title'];?></a>
    在detail.php中根据id显示其他的内容。
      

  4.   

    我title里面放得就是普通的文本信息。。
      

  5.   

     $SQL="SELECT * FROM `message` order by id desc";
      $query=mysql_query($SQL);
      while($row=mysql_fetch_array($query)){
    ?><table width=1000 border="2" cellpadding="8" cellspacing="5" bgcolor="#add3ef">
      <tr bgcolor="#eff3ff">
      <td>标题:<?php echo $row['title'];?></a> 涉及地区:<?php echo($row[area]);?><td>
      </tr>
      <tr bgColor="#ffffff">
      <td>涉及领域:<?php echo($row[ly]);?>   来源:<?php echo($row[form]);?>    备注:<?php echo($row[beizhu]);?></td>
      </tr>
      <tr bgColor="#ffffff">
      </tr>
    </table>
    <?php
      }
    ?>图片怎么上不去啊,不好意思我实在很菜,是我表达的太模糊了,我想要的功能就跟普通论坛的功能一样,就是点击帖子标题进入看帖子原文和回复内容
      

  6.   

    <td>标题:<a href="detail.php?id=<?php echo $row['id']?> "><?php echo $row['title'];?></a> 涉及地区:<?php echo($row[area]);?></td>你还需要写一个detail.php页面
      

  7.   

    E。。detail.php页面怎么写啊?用什么函数能跟这个链接起来啊?大侠能给开个头么。。