I wanna modify the display so that the text is smaller. So I wanna modify the display for $content and $title. I tried putting in a font face attribute but no luck, i get an error.
How do I go about modifying the display. Hope someone can help.
Thx.
<?
$sql2 = "SELECT *
From phl_news
ORDER BY to_order_by DESC LIMIT 0,2
";
$result2 = @($sql2,$connection) or die("Couldn't execute query.");
$num2 = mysql_num_rows($result2);
$counter = 0;
If ($num2 > 0)
{
while ($row2 = mysql_fetch_array($result2))
{
$counter++;
$id = $row2['id'];
$title = $row2['title'];
$newsdate = $row2['newsdate'];
$content = $row2['content'];
$content = substr($content, 0, 25);
$content = nl2br($content);
$option_news2 .= "<table width=195>
<tr>
<td bgcolor=\"#FFFFFF\">
<span class=\"reports2\"><B>$title</B></span>
</td>
</tr>
<tr>
<td bgcolor=\"#FFFFFF\" valign=bottom>
<span class=\"reports\">$content ... <A HREF=newsdetails.php?$id/">more</A></span>
</td>
</tr>
</table>";
if ($counter < $num2)
{
$option_news2 .= "<BR>";
}
}
}
else
{
$option_news2 = "<table><tr>
<td bgcolor=\"#FFFFFF\"><span class=\"reports\">No Current Entries in Database</span></td>
</tr></table>";
}
?>
//Display
<? echo $option_news2; ?>