That worked perfectly, although I forgot one important part - a small image that will be "left aligned" next to either the subtitle, or the first paragraph, depending on whether there is a subtitle or not.
So, Is there a way to make an "or" statement in php?
For example...say I wanted it to be:
Show me title, image, subtitle and first if the subtitle is NOT blank
OR , if the subtitle IS blank, Show me title, image, first.
This is what I have right now, but what's happening is that I'm getting 2 records for each story with a subtitle.
while($rows = mysql_fetch_array($result)){
print "<h1$rows[title]</h1>";
if ($rows[subtitle] != '') {
print "<img src='http://www.sitename.com/images/home/$rows[image].jpg' align='left'><p><b>$rows[subtitle]</b><br>";
print $rows[first];
print "<a href=\"/news/news.php?id=".$rows[id]."\">" . '[Full Story]' . "</p></a>";
}
print "<h1$rows[title]</h1>";
if ($rows[subtitle] ='*') {
print "<img src='http://www.sitename.com/images/home/$rows[image].jpg' align='left'><p>";
print $rows[first];
print "<a href=\"/news/news.php?id=".$rows[id]."\">" . '[Full Story]' . "</p></a>";
}}
?>
</table>