Changeset 4867 for temp/trunk/html
- Timestamp:
- 2006/09/17 16:49:46 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/frontparts/bloc/news.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/frontparts/bloc/news.php
r4608 r4867 19 19 function lfGetNews(){ 20 20 $conn = new SC_DBConn(); 21 $sql = "SELECT *, to_char(news_date, 'YYYY/MM/DD') as news_date_disp FROM dtb_news WHERE del_flg = '0' ORDER BY rank DESC";21 $sql = "SELECT *, cast(substring(news_date,1,10) as date) as news_date_disp FROM dtb_news WHERE del_flg = '0' ORDER BY rank DESC"; 22 22 $list_data = $conn->getAll($sql); 23 23 return $list_data;
Note: See TracChangeset
for help on using the changeset viewer.
