Parent Directory | Revision Log | Patch
revision 1.2 by dpavlin, Wed Feb 21 15:52:31 2001 UTC | revision 1.3 by dpavlin, Thu Feb 22 20:51:10 2001 UTC | |
---|---|---|
# | Line 31 if (isset($id)) { | Line 31 if (isset($id)) { |
31 | $sql_where.="and id=$id"; | $sql_where.="and id=$id"; |
32 | } | } |
33 | ||
34 | $sth = $dbh->prepare("select id,title,date,body,pic from news $sql_where order by id desc"); | $sth = $dbh->prepare("select id,title,date,body,pic from news $sql_where order by date desc"); |
35 | $sth->execute(); | $sth->execute(); |
36 | while ($row=$sth->fetchrow_hash()) { | while ($row=$sth->fetchrow_hash()) { |
37 | $data[]=$row; | $data[]=$row; |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |