Hi All,
I'm looking for mysql query it like database join which is it store data as a value but label using another column.
Example:
I have 2 column namely `id` and `question`
I want that `id` label is point column `question`. So result is data store as a `id` but label read as `question`.
Anyone can help? Thanks.
Note: I using calc element for mysql query.
Regards,
MyFateBiz
I'm looking for mysql query it like database join which is it store data as a value but label using another column.
Example:
I have 2 column namely `id` and `question`
Code:
$db = JFactory::getDBO();
$db->setQuery("SELECT `id` FROM `qb_kpp_test` ORDER BY RAND() LIMIT 1");
return $db->loadResult();
I want that `id` label is point column `question`. So result is data store as a `id` but label read as `question`.
Anyone can help? Thanks.
Note: I using calc element for mysql query.
Regards,
MyFateBiz