1
I want that when you click on the hyperlink for the second time another code is executed.
<a href=?ordem=nom>$lib_nom</a>
//ordena dados do array ASC
array_multisort( $affiche_ord, SORT_ASC, $affiche_tab );
//ordena dados do array DESC
array_multisort( $affiche_ord, SORT_DESC, $affiche_tab );
If click once do the ASC if it is the second time DESC, and so on.
Can you explain better what you want to do? Since this doesn’t make much sense... Want to do this on the client or server side? Explain a little of the context pf.
– Sergio
I have a link. Quando clico a primeira vez, quero que execute este codigo array_multisort( $affiche_ord, SORT_ASC, $affiche_tab ); e quando voltar a clicar executar array_multisort( $affiche_ord, SORT_DESC, $affiche_tab );
– akm
Okay, and you want the click to be on the client side
sort
in PHP/server... why not do this in Javascript? Want to reload the page or do this via AJAX?– Sergio
is a link that reloads the page. Yes from the client side.
– akm