Replies: 2 comments 6 replies
-
I would use the old
|
Beta Was this translation helpful? Give feedback.
6 replies
-
I use getdb_table, only needs two code lines:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is just a bit annoying... maybe there could be a solution.
I know that I can use foreach or other code to get what I need, but...
For select field in Admin UI I need only ID (value) and Name (text).
I would like to have simple:
$cats = e107::getDb()->retrieve('hdu_helpdesk', "hdudesk_name", true, true, 'hdudesk_id');
but result is (complete wrong)
With
$cats = e107::getDb()->retrieve('hdu_helpdesk', "hdudesk_id, hdudesk_name", true, true, 'hdudesk_id');
Result is : (see correct key)
with this I can use:
Correct result:
Old way:
$cats = e107::getDb()->retrieve('hdu_helpdesk', "hdudesk_id, hdudesk_name", true, true );
You need to use foreach to get correct result.
Is there solution for this? Thanks
Beta Was this translation helpful? Give feedback.
All reactions