View Full Version : How to show all news with defined format

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:

echo '<table>';
echo '<TR valign="middle">';
echo '<TD nowrap="TRUE" width="115" class="news_content1">7:46am&nbsp; 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>&nbsp;- Source1</TD>';
echo '</td>';
echo '<td width="15"><img src="images/spacer.gif" height="10"></td>';

echo '</TR>';
echo '</table>';

03-20-2006, 12:25 PM
Depends on your database software.

03-20-2006, 12:30 PM
I have support for PHP on Lynux

03-20-2006, 04:20 PM
Lynux? That Linux/LynxOS blend? Interesting, I hadn't seen that used practically before. Anyway... PHP is a server-side language; Lynux is an operating system (whether or not you actually meant Linux or Lynux). Neither of them are your database software package. Common such packages include MySQL or PostgreSQL.