$query->select($db->quoteName(array('a.id', concatenate('a.fnam', '', 'a.bnam', ' ', 'a.lnam') 'as name' ),array('id','name')));$query->select($query->concatenate($db->quoteName(array("a.fnam", "a.bnam", "a.lnam")), " ") . " AS name")
$query->select("CONCAT(" . $db->quoteName(array("a.fnam", "a.bnam", "a.lnam")) . " SEPARATOR ' ') AS name");
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/8ceff08a-3ef2-4f9a-a7f9-14d856bed17co%40googlegroups.com.
My question is if the alias 'AS ...' is doing the thing what is advantage of that second array with the 'alias' names?
Another question that I have is, although this working for me now, but I have now tow query->select statements: one for the id and one for name. I don't see at the moment but can combine these one or is that not possible? Just to know for in the future.
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/7e898edc-b48d-4e3d-a954-035415d3aeb0n%40googlegroups.com.