toplisek
03-20-2006, 12:05 PM
I have in database on server table with news:
fields are ID, date of article, title, summary, content
How to do code that it will be shown all articles on server (database with fields) in rows:) like example:
<?PHP
echo '<table>';
echo '<TR valign="middle">';
echo '<TD nowrap="TRUE" width="115" class="news_content1">7:46am 11/14/05</TD>';
echo '<td width="10"><IMG src="images/spacerw.gif" height="1"></td>';
echo '<td width="99%" class="news_content2">';
echo '<A href=""> News Provider3</A> - Source1</TD>';
echo '</td>';
echo '<td width="15"><img src="images/spacer.gif" height="10"></td>';
echo '</TR>';
echo '</table>';
?>
fields are ID, date of article, title, summary, content
How to do code that it will be shown all articles on server (database with fields) in rows:) like example:
<?PHP
echo '<table>';
echo '<TR valign="middle">';
echo '<TD nowrap="TRUE" width="115" class="news_content1">7:46am 11/14/05</TD>';
echo '<td width="10"><IMG src="images/spacerw.gif" height="1"></td>';
echo '<td width="99%" class="news_content2">';
echo '<A href=""> News Provider3</A> - Source1</TD>';
echo '</td>';
echo '<td width="15"><img src="images/spacer.gif" height="10"></td>';
echo '</TR>';
echo '</table>';
?>