Changeset 1866 for trunk/comments.php
- Timestamp:
- Feb 28, 2007, 4:07:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comments.php
r1861 r1866 370 370 371 371 // retrieving category informations 372 $categories = array();373 372 $query = ' 374 SELECT id, name, uppercats373 SELECT id, name, permalink, uppercats 375 374 FROM '.CATEGORIES_TABLE.' 376 375 WHERE id IN ('.implode(',', $category_ids).') 377 376 ;'; 378 $result = pwg_query($query); 379 while ($row = mysql_fetch_assoc($result)) 380 { 381 $categories[$row['id']] = $row; 382 } 377 $categories = hash_from_query($query, 'id'); 383 378 384 379 foreach ($comments as $comment)
Note: See TracChangeset
for help on using the changeset viewer.