Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2163

Administration Joomla! 5.x • Re: Step by step to create a list with states and cities with Fields Joomla

$
0
0
You could make a table from your xml data and then use an SQL field:

https://jdocmanual.org/jdocmanual?manua ... l-field.md
Great tip, thank you, I was trying to understand how this option works, I followed the steps in the tutorial, but it's not working.

Would it be too much to ask for a more complete return from you?

I downloaded the data from IBGE, which handles official data and statistics for states and municipalities.

They provide a ready-made MySQL, when I added it, two tables were created:

1 - cities
2 - states

In the Joomla field I added:

SELECT `id` AS value, `title` AS text
FROM `states`
WHERE `state` = 1
ORDER BY `title` ASC

When doing this the error appears:

1054
Unknown column 'title' in 'field list'

When I add the second mysql table call:

SELECT `id` AS value, `title` AS text
FROM `cities`
WHERE `state` = 1
ORDER BY `title` ASC

Several MySQL errors appear, only on the page where I am going to add the form, which is the edit profile page.

See the attached images:

Thank you in advance for your attention

Statistics: Posted by rikaryo — Thu May 09, 2024 3:58 pm



Viewing all articles
Browse latest Browse all 2163

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>