- Jun 4, 2005
- 19,723
- 1
- 0
<?
while ($row = mysql_fetch_object ($sql)) {
echo "<h3 id='news' title='News'>";
echo $row->title;
print "</h3>";
print "<p>";
echo $row->content;
print "</p>";
}
mysql_free_result ($sql);
?>
When I do that, there's an extra line break before the <h3>news</h3>. Why is this? Is there a better way to pull this SQL information?
while ($row = mysql_fetch_object ($sql)) {
echo "<h3 id='news' title='News'>";
echo $row->title;
print "</h3>";
print "<p>";
echo $row->content;
print "</p>";
}
mysql_free_result ($sql);
?>
When I do that, there's an extra line break before the <h3>news</h3>. Why is this? Is there a better way to pull this SQL information?