如何给下面的搜索结果加链接啊?
search.php
<?php
$type=$_POST[type];
$content=$_POST[content];
$task_subject=$_POST[task_subject];
$task_no=$_POST[task_no];
$sql=mysql_query("select * from rco_task where (task_subject like'%$content%' or task_no like'%$content%')");
$info=mysql_fetch_array($sql);
?>
<?php
if($info){
do{
?>
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="26"><?php echo str_ireplace($content,"<font color='#FF0000'>".$content."</font>",$info[task_subject]);?> <?php echo str_ireplace($content,"<font color='#FF0000'>".$content."</font>",$info[task_no]);?></td>
</tr>
<tr>
</tr>
<tr>
<td height="26"> 任务标题:<?php echo str_ireplace($content,"<font color='#FF0000'>".$content."</font>",$info[task_subject]);?> 任务编号:<?php echo str_ireplace($content,"<font color='#FF0000'>".$content."</font>",$info[task_no]);?></td>
</tr>
</table>
<?php
} while($info=mysql_fetch_array($sql));
}else{
?>
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">您检索的信息资源不存在!</td>
</tr>
</table>
<?php
}
?>
search.php
<?php
$type=$_POST[type];
$content=$_POST[content];
$task_subject=$_POST[task_subject];
$task_no=$_POST[task_no];
$sql=mysql_query("select * from rco_task where (task_subject like'%$content%' or task_no like'%$content%')");
$info=mysql_fetch_array($sql);
?>
<?php
if($info){
do{
?>
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="26"><?php echo str_ireplace($content,"<font color='#FF0000'>".$content."</font>",$info[task_subject]);?> <?php echo str_ireplace($content,"<font color='#FF0000'>".$content."</font>",$info[task_no]);?></td>
</tr>
<tr>
</tr>
<tr>
<td height="26"> 任务标题:<?php echo str_ireplace($content,"<font color='#FF0000'>".$content."</font>",$info[task_subject]);?> 任务编号:<?php echo str_ireplace($content,"<font color='#FF0000'>".$content."</font>",$info[task_no]);?></td>
</tr>
</table>
<?php
} while($info=mysql_fetch_array($sql));
}else{
?>
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">您检索的信息资源不存在!</td>
</tr>
</table>
<?php
}
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货