Data picker - Page 2

Data picker

2»

Answers

  • antoniocibantoniocib Posts: 277Questions: 62Answers: 1
    edited May 2020

    @rf1234 I SOLVED I LOVE U!

  • rf1234rf1234 Posts: 2,808Questions: 85Answers: 406
    Answer ✓

    probably a curly brace is missing:

    ->where( function ($q) {
       if ( isset($_POST['startDate']) ) {
           $q->where( 'data_di_scarico', $_POST['startDate'] );
       }
     } )
    
  • antoniocibantoniocib Posts: 277Questions: 62Answers: 1

    Yes this is the problem!

This discussion has been closed.