Changeset 377 for beta/inc/html.php
- Timestamp:
- Sep 16, 2008, 6:53:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/inc/html.php
r373 r377 216 216 } 217 217 $this -> db -> select_db("web"); 218 $sql = $this -> db -> query("SELECT * FROM `articles`".$where."ORDER BY `date` ;");218 $sql = $this -> db -> query("SELECT * FROM `articles`".$where."ORDER BY `date` DESC;"); 219 219 if ($sql -> num_rows > 0) 220 220 { … … 241 241 break; 242 242 } 243 $date_arr = explode(" ",$row["date"]); 244 $date = explode("-",$date_arr[0]); 245 $time = mktime(0,0,0,$date[1],$date[2],$date[0]); 246 $human_date = date ("d.m.Y",$time); 243 247 echo " 244 248 <table align=\"center\" border=\"1\" width=\"500\"> 245 249 <tr> 246 250 <td><b>".$row["title"]."</b></td> 247 <td width=\"100\">".$ row["date"]."</td>251 <td width=\"100\">".$human_date."</td> 248 252 </tr> 249 253 <tr>
Note:
See TracChangeset
for help on using the changeset viewer.