i am trying to display all the data from a news table, however, when it will only display the first three entries. But if i limit the outpu tof the main text body usign
echo substr($myrow['news_body'], 0, 100);
it displays all the records
is there a limit to how much i can display??
Seems odd to me.
Any ideas
Cheers
Nick
//code
include 'dbcon.php';
echo "<h1>NEWS</h1><br>";
//SQl statement for db query
$result=mysql_query("SELECT * FROM news",$db);
while($myrow = mysql_fetch_array($result))
{
echo substr($myrow['news_date'], 6, 2), "/";
echo substr( $myrow['news_date'], 4, 2 ), "/";
echo substr( $myrow['news_date'], 0, 4 );
echo "<br><br><b>";
echo $myrow['news_subject'];
echo "</b><br><br>";
echo $myrow['news_body'];
echo "<br>";
echo "<hr>";
}