|
Posted by comp.lang.php on 12/16/76 11:59
[PHP]
$array = array($firstOrderByFieldIfClause, $groupByClause,
$orderByClause);
array_walk($array, create_function('&$a', '$a = substr($a, 0,
strrpos(trim($a), ",")); if ($a) $a = ", $a";'));
print_r("firstOrderByFieldIfClause = $firstOrderByFieldIfClause and
groupByClause = $groupByClause and orderByClause = $orderByClause<P>");
[/PHP]
Upon execution the fields within $array are never changed (verified by
checking code), and I don't understand why.
[quote]
firstOrderByFieldIfClause = IF(image_creation_date IS NULL OR
image_creation_date = '' OR image_creation_date LIKE '0000%', 'x',
NULL) AS image_creation_date_alt, and groupByClause =
image_creation_date_alt, and orderByClause = image_creation_date_alt
desc,
[/quote]
Please review and help, I'm utterly lost!
Thanx
Phil
Navigation:
[Reply to this message]
|