this has taken me hours and I am going nowhere slowly can anyone please help.
I am tryig to get my table to display more than 1 news record everythig i have tried doesn't work or has runtime errors. Here is the basic code that worls and displays the one row.
How would I get it to display the 9 most recet rows. Any help would be appreciated cheers.
<div id="news">
<?
$sql = "SELECT * FROM tblnewsdetails order by intnewsID desc limit 1";
$temps = $DB_site->query($sql);
if($row=$DB_site->fetch_array($temps))
{
$tradeaid = $row["intnewsID"];
$accountid = $row["intAccountID"];
$stitle = $row["newsshTit"];
$updated = $row["dtAddedOn"];
}
?>
<div class="asnazzy">
<b class="atop"><b class="ab1"></b><b class="ab2 color_c"></b><b class="ab3 color_c"></b><b class="ab4 color_c"></b></b>
<div class="aboxcontent">
<h1 class="color_c">Market News</h1>
<p>
<table cellspacing="0" cellpadding="2" border="0">
<td width="90% align=left"><?=$stitle?></td>
</tr>
</table>
</p>
</div>