Answer the question
In order to leave comments, you need to log in
To select the list of users from 2 tables of a DB?
Good day. The question seems to be banal but still I can not find a solution on the net. Actually an essence - is XML which forms fields for the form of editing of a material. It displays a list of users registered on the site in a drop-down list format.
<field name="name"
type="sql"
default="10"
label="Name"
query="SELECT name FROM #__users "
key_field="name">
</field>
Answer the question
In order to leave comments, you need to log in
well, how can you not find the answer to this question on the net?
select name from zakaz -- here is your first Vasya.
union -- here is the command we need
select name from users -- here are all other users
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question