$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.
firstOrderByFieldIfClause = IF(image_creation_date IS NULL ORPlease review and help, I'm utterly lost!
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,
Thanx
Phil