v5:reference:connection:month
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | v5:reference:connection:month [2022/08/22 12:50] (current) – [month] fix function name in syntax block dregad | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== month ====== | ||
+ | ~~NOTOC~~ | ||
+ | <WRAP right box> | ||
+ | **From Version 5.21.0-beta-2** | ||
+ | == See Also == | ||
+ | [[v5: | ||
+ | [[v5: | ||
+ | == Syntax == | ||
+ | string month( | ||
+ | string $fieldName, | ||
+ | ) | ||
+ | </ | ||
+ | ===== Description ===== | ||
+ | The method '' | ||
+ | ===== Parameters ===== | ||
+ | ==== $fieldName ==== | ||
+ | The date/time fieldname to be processed | ||
+ | -------------------------------- | ||
+ | ===== Usage ===== | ||
+ | In the following example, we analyze the most often occurring | ||
+ | month of the year for a birth date | ||
+ | <code php> | ||
+ | |||
+ | $sql = " | ||
+ | FROM employees | ||
+ | GROUP BY {$db-> | ||
+ | ORDER BY {$db-> | ||
+ | $data = $db-> | ||
+ | |||
+ | /* | ||
+ | * Returns 14 employees have their birth date on the 8th | ||
+ | * month of the year | ||
+ | */ | ||
+ | |||
+ | array(0=> | ||
+ | | ||
+ | |||
+ | */ | ||
+ | </ |
v5/reference/connection/month.txt · Last modified: 2022/08/22 12:50 by dregad