Re: Re: [orazio] Get options from database limit??

2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 10, 2021   (RSS)

By Jenna - February 10, 2021

Hi rez,

If you were to use the "Get options from MySQL query (advanced)" as seen in the screenshot attached you would be able to set your own limit or leave out the limit entirely.

You could use a query like :

SELECT yourFieldName
  FROM `<?php echo $TABLE_PREFIX ?>your_tableName`
ORDER BY yourFieldName ASC

Feel free to omit the ORDER BY clause, but it would be handy in this case because you have >1000 records to display. It would default to orderBy the numerical index (num) column of your brewers table.

Let me know if that helps you with your question or if I should dig in deeper and find something else to help you out.

Jenna Cooke - PHP Programmer
interactivetools.com