datepicker + PHP + MySQL -


in same page have datepicker , following code:

    <?php  $query = mysqli_query($conn, " select * divulgacaoeventos order datepicker ") or die(mysqli_errno("não há registro de eventos.")); $row = mysqli_num_rows($query); if($row != 0){     while ($evento = mysqli_fetch_object($query)){          echo "evento: ".$evento->eventname."<br/>";         echo "local: ".$evento->local."<br/>";         echo "cidade: ".$evento->cidadeestado."<br/>";         echo "data: ".$evento->datepicker."<br/>";         echo "hora: ".$evento->hour."<br/>";         echo "atrações: ".$evento->atracoes."<br/>";         echo "contato: ".$evento->contato."<br/>";         echo "r$: ".$evento->valoringresso01." ".$evento->tipoingresso01."<br/>";         echo "r$: ".$evento->valoringresso02." ".$evento->tipoingresso02."<br/>";         echo "r$: ".$evento->valoringresso03." ".$evento->tipoingresso03."<br/>";         echo "r$: ".$evento->valoringresso04." ".$evento->tipoingresso04."<br/>";          echo "<br/>";      }     }else{         echo "no registers.";         } ?> 

all data displayed , can order results date, i'd associate datepicker , display data (ordered date) when click on date. i've tried array functions failed. tried onselect no success. i'd appreciate help. thanks!

have add desc or asc ever want query..

select * divulgacaoeventos order datepicker 

should be

select * divulgacaoeventos order datepicker desc  

update:

your concept represent data according selected date different, have is, detect event on date select , send ajax request php page data selected date , show desired result.

and make sure familier jquery well. jquery ajax

take on link generate ajax request after date select.

jquery ui datepicker onclick event


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -