我正在做新闻网站并像这样从数据库中获取新闻
<div class="left-content nine-column" style="font-size:13px; line-height:25px; font-family:open sans;">
<?php
$qry = "Select * from tbl_news";
$result = null;
if(!$result = mysqli_query($con,$qry))
Die("Error in database");
else
{
if(mysqli_num_rows($result) >= 1)
{
while(($rec = mysqli_fetch_assoc($result)) != null)
{
echo '<div class="post">
<h1>'. $rec['news_heading'] .'</h1>
<ul class="post-meta">
<li><a href="" title=""><i class="icon-calendar-empty"></i><span>'. $rec['news_date'] .'</span></a></li>
<li><a href="" title=""><i class="icon-user"></i>By'.$rec['postedby'].'/a></li>
<li><a href="" title=""><i class="icon-map-marker"></i>'.$rec['news_location'].'</a></li>
</ul>
<div class="post-desc">
<p>'.$rec['news_ldesc'].'
<!-- here i want read more link -->
</p>
<br/>
</div>
</div> ';
}
}
}
?>
</div>
现在我想做的是我想阅读更多关于他们重定向到的每个新闻项目的链接,news_details.php
并且那个单一的新闻将在那里显示,我如何得到它,请帮助我