ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 3528


Ignore:
Timestamp:
Jul 24, 2007, 5:05:49 PM (12 years ago)
Author:
maruyama
Message:

#957 admin:世代別メンバー表示で、誕生日を迎えたユーザの世代が更新されない

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.6.x/webapp/modules/admin/lib/db_admin.php

    r3028 r3528  
    14021402    );
    14031403   
    1404     $sql = "SELECT ((YEAR(CURDATE()) - birth_year)- " .
    1405         "(RIGHT(CURDATE(),5)<CONCAT(birth_month,'-',birth_day))) " .
     1404    $today = getdate();
     1405    $cur = $today['mon']*100 + $today['mday'];
     1406    $sql = "SELECT ((YEAR(CURDATE()) - birth_year) " .
     1407        "- ( ? < (birth_month*100 + birth_day))) " .
    14061408        "AS age FROM c_member WHERE birth_year <> 0;";
    1407     $lst = db_get_all($sql);
     1409    $lst = db_get_all($sql, array($cur));
    14081410
    14091411    $temp = array_keys($analysis_generation);
Note: See TracChangeset for help on using the changeset viewer.