tis code works fo some record listings, but all of a sudden it will put all of the data in the Body field.
for ($i=0; $i <$num_p; $i++)
{
$row = mysql_fetch_array($result);
($i+1);
echo "<tr>";
echo "<td nowrap>" . ($row[1]) . "</td>";
$headline = $row[8];
if ($headline == "na" || $headline == "")
{
$headline = " ";
}
echo "<td>" . ($headline) . "</td>";
$author = $row[7];
if ($author == "na" || $author == "")
{
$author = " ";
}
echo "<td>" . ($author) . "</td>";
$body = substr($row[10],0,250);
$lastspacepos=strrpos($body,' ');
echo "<td>";
echo substr($body,0,$lastspacepos) . "...";