I am thinking somewhere more along the lines of:
PHP Code:
$query="SELECT * FROM $tblname ORDER BY un_date DESC LIMIT 0,$limit";
$result=mysql_query($query);
$number=mysql_numrows($result);
if($number==0){echo "No News Results"; exit();}
$i = 0;
while ($i < $number){
$nheadline = mysql_result($result,$i,"news_headline");
$nstory = mysql_result($result,$i,"news_text");
$ndate = mysql_result($result,$i,"news_date");
$headline = stripslashes($nheadline);
$story = stripslashes($nstory);
I think I can get it perfect, just needa work on it
EDIT: Then to view it, I could do this:
PHP Code:
$i++;
}
showcopy();