OC Coding Style: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
→SQL
(→PHP) |
(→SQL) |
||
Zeile 34: | Zeile 34: | ||
); | ); | ||
Note that the | Note that the opening " is on a tab position, while the following lines start one column to the right. | ||
If lines get too long, the parameters are moved to the next line(s) and indented to the next Tab position (which is ''three'' chars right of the preceding line start): | If lines get too long, the parameters are moved to the next line(s) and indented to the next Tab position (which is ''three'' chars right of the preceding line start): | ||
Zeile 49: | Zeile 49: | ||
AND `cache_logs`.`type` = '&1' | AND `cache_logs`.`type` = '&1' | ||
WHERE | WHERE | ||
`caches`.`status` = '& | `caches`.`status` = '&2' | ||
AND `cache_logs`.`user_id` = '& | AND `cache_logs`.`user_id` = '&3' | ||
$logType, | |||
$cacheStatus, | $cacheStatus, | ||
$userId | $userId |