Results 1 to 4 of 4

Thread: How to show all news with defined format

  1. #1
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to show all news with defined format

    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 Code:
    <?PHP
    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>';
    ?>

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Depends on your database software.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have support for PHP on Lynux

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •