View Single Post
Old 03-30-2003, 08:48 PM   #6 (permalink)
Ryan
Registered User
 
Join Date: Mar 2003
Location: Virginia
Posts: 4
Ryan is on a distinguished road
Send a message via ICQ to Ryan Send a message via AIM to Ryan Send a message via Yahoo to Ryan
Hi,

Try this code out:

PHP Code:
<?
$query 
= ("SELECT * FROM news ORDER BY ID DESC LIMIT 5");
$result mysql_query($query);

while (
$row mysql_fetch_array($result)) {

    print(
"<br><br><p>");
    print(
"<b><i>posted by</i>");
    print(
"-=[" $row[author] . "]=-");
    print(
"<u>" $row[header] . "</u></b>");
    print(
"<font size='2'><i> " $row[date] . " @" .  $row[time]);
    print(
"</i></font><br>");
    print(
$row[content] . " </p>");
    print(
"<br><hr width='85%'>");
}
?>
I added a lot more "print" functions in there but I tried to make it a bit more organized.
Ryan is offline   Reply With Quote