I'm having a little difficulty regarding query INNER JOIN. I have a table called users and it contains the following fields:
First Name
Last Name
Tipo_fk (Foreing Key)
Categoria_fk (Foreing Key)
As shown above, the HTML select function works fine, however when I load my table to show the data, the "Type" and "Category" fields show the ID number of the selected value in the combobox instead of the selected name. / p>
Below is the query (INNER JOIN) I am using to try to display the name instead of the ID number of the selected item.
SELECT users.*, tipo_ps.tipo_id , categorias.categoria_id
FROM ((users
INNER JOIN categorias ON users.categoria_fk = categorias.categoria_id)
INNER JOIN tipo_ps ON users.tipo_fk = tipo_ps.tipo_id)
And an excerpt from the table I mentioned that shows only the ID number of the selected value in the droplist after being registered: