Query

Query

wjm69wjm69 Posts: 12Questions: 5Answers: 1

I have an Sql table. I used table generater to create the code for the table. The table displays perfectly. I would like the table to only display records within a date range. Which file and what should the code look like?

Thank you.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin

    Hi,

    The documentation here explains how you can apply a where condition to the data that is being read from the database.

    Regards,
    Allan

  • wjm69wjm69 Posts: 12Questions: 5Answers: 1

    I used the generator to make the table. Which file in generator does the where statement explained above go?

    thanks, wiley

  • wjm69wjm69 Posts: 12Questions: 5Answers: 1
    Answer ✓

    figured it out. thanks.

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin

    Hi,

    Good to hear you've got it working. For anyone else that finds this thread, you would modify the table.*.php file that Generator creates (in the php directory).

    Allan

This discussion has been closed.