Changeset 4791 for temp/trunk/data/lib


Ignore:
Timestamp:
2006/09/15 13:16:49 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/lib/slib.php

    r4790 r4791  
    10521052/* µ¬³ÊʬÎà¤Î·ï¿ô¼èÆÀ */ 
    10531053function sfGetClassCatCount() { 
    1054     $sql = "select count(dtb_class.class_id), dtb_class.class_id "; 
     1054    $sql = "select count(dtb_class.class_id) as count, dtb_class.class_id "; 
    10551055    $sql.= "from dtb_class inner join dtb_classcategory on dtb_class.class_id = dtb_classcategory.class_id "; 
    10561056    $sql.= "where dtb_class.del_flg = 0 AND dtb_classcategory.del_flg = 0 "; 
     
    10581058    $objQuery = new SC_Query(); 
    10591059    $arrList = $objQuery->getall($sql); 
    1060     $objQuery->getlastquery(); 
    10611060    // ¥­¡¼¤ÈÃͤò¥»¥Ã¥È¤·¤¿ÇÛÎó¤ò¼èÆÀ 
    10621061    $arrRet = sfArrKeyValue($arrList, 'class_id', 'count'); 
    1063      
    1064     sfprintr($arrRet); 
    10651062     
    10661063    return $arrRet; 
Note: See TracChangeset for help on using the changeset viewer.