Thread: auto_increment
View Single Post
Old 02-26-2003, 10:12 PM   #9 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
sorry... i am not paying attention.. it's late here to. looks like you have an extra query .. try this:

PHP Code:
<?
$query 
"Select * from news order by id desc limit 20";
  
$result mysql_query ($query$db)
                        or die(
"error");

while (
$row mysql_fetch_array ($result)) {
  print(
"<br><br><p>
<b><i>posted by</i> -=[$row[author]]=-  <u>$row[header]</u></b>
<font size='2'><i> $row[date] @ $row[time] </i></font>
<br>
$row[content] </p>
<br>
<hr width='85%'>"
);
}
?>
sde is offline   Reply With Quote