PHP中网页title 如何调用文章标题请看说明
<title></title><body><?include("top.php");?><divid="gsjj"><divid="gsjj1"><divid="gsjj...
<title></title>
<body><? include("top.php");?>
<div id="gsjj">
<div id="gsjj1">
<div id="gsjj11"></div>
<div id="gsjj12"></div>
<div id="gsjj13"></div>
</div>
<div id="gsjj2">
<Div id="gsjj_left"><? include("gsleft.php");?></Div>
<div id="gsjj_right">
<div id="gsjj21"></div>
<div id="gsjj22"><img src="gspic/59.jpg" width="149" height="36" border="0" / style="padding-top:10px;"></div>
<div id="gsjj23"><table width="95%" border="0" align="center" cellspacing="0">
<?
include("public.inc.php");
mysql_query("update news set click=click+1 where id='$_GET[id]'");
$result=mysql_query("select * from news where id='$_GET[id]' ");
$row=mysql_fetch_array($result);
?>
<tr><td height="23" align="center">
<font color="#cc0000"><?=$row[title]?></font>
<font color="#999999" style="font-size:12px">[作者:<?=$row[zuozhe]?> <?=$row[time]?>
点击:<?=$row[click]?>]</font></td></tr> 展开
<body><? include("top.php");?>
<div id="gsjj">
<div id="gsjj1">
<div id="gsjj11"></div>
<div id="gsjj12"></div>
<div id="gsjj13"></div>
</div>
<div id="gsjj2">
<Div id="gsjj_left"><? include("gsleft.php");?></Div>
<div id="gsjj_right">
<div id="gsjj21"></div>
<div id="gsjj22"><img src="gspic/59.jpg" width="149" height="36" border="0" / style="padding-top:10px;"></div>
<div id="gsjj23"><table width="95%" border="0" align="center" cellspacing="0">
<?
include("public.inc.php");
mysql_query("update news set click=click+1 where id='$_GET[id]'");
$result=mysql_query("select * from news where id='$_GET[id]' ");
$row=mysql_fetch_array($result);
?>
<tr><td height="23" align="center">
<font color="#cc0000"><?=$row[title]?></font>
<font color="#999999" style="font-size:12px">[作者:<?=$row[zuozhe]?> <?=$row[time]?>
点击:<?=$row[click]?>]</font></td></tr> 展开
展开全部
把
<?
include("public.inc.php");
mysql_query("update news set click=click+1 where id='$_GET[id]'");
$result=mysql_query("select * from news where id='$_GET[id]' ");
$row=mysql_fetch_array($result);
?>
放到<title></title>的上面
然后<title></title>改成<title><?=$row[title]?></title>
<?
include("public.inc.php");
mysql_query("update news set click=click+1 where id='$_GET[id]'");
$result=mysql_query("select * from news where id='$_GET[id]' ");
$row=mysql_fetch_array($result);
?>
放到<title></title>的上面
然后<title></title>改成<title><?=$row[title]?></title>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询