Changeset 2 for frontend.php


Ignore:
Timestamp:
Nov 25, 2008, 9:41:53 PM (16 years ago)
Author:
maron
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend.php

    r1 r2  
    11<?php
    2 
    3 
     2       
     3        function show_article($type) {
     4                global $database;
     5                $Query = $database->select('article', '*', 'type = '.$type);
     6              while($DbRow = $Query->fetch_array())
     7                {
     8                        echo '<div id="article"><b>'.$DbRow['name'].'</b><br> '.$DbRow['text'].'</div>';
     9                }
     10        }
     11       
    412?>
Note: See TracChangeset for help on using the changeset viewer.