[PHP]
$array = array($firstOrd erByFieldIfClau se, $groupByClause,
$orderByClause) ;
array_walk($arr ay, create_function ('&$a', '$a = substr($a, 0,
strrpos(trim($a ), ",")); if ($a) $a = ", $a";'));
print_r("firstO rderByFieldIfCl ause = $firstOrderByFi eldIfClause 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.
Please review and help, I'm utterly lost!
Thanx
Phil
$array = array($firstOrd erByFieldIfClau se, $groupByClause,
$orderByClause) ;
array_walk($arr ay, create_function ('&$a', '$a = substr($a, 0,
strrpos(trim($a ), ",")); if ($a) $a = ", $a";'));
print_r("firstO rderByFieldIfCl ause = $firstOrderByFi eldIfClause 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.
firstOrderByFie ldIfClause = IF(image_creati on_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,
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
Comment