invite Posted October 18, 2004 Share Posted October 18, 2004 Bonjour, voila, j'utilise php pour afficher une table de données mysql dans une page web, et je voudrais pouvoir d'un simple clic (comme c'est le cas avec phpMyAdmin) réordonner la table soit par nom croissant ou décroissant, ou par ville, etc... Merci à celui qui pourra me donner un bout de code ... Link to comment Share on other sites More sharing options...
theocrite Posted October 18, 2004 Share Posted October 18, 2004 Dans le mysql_query, tu mets à la fin de ta requette "ORDER BY date DESC" "ORDER BY date ASC" "ORDER BY ville DESC" "ORDER BY ville ASC" Link to comment Share on other sites More sharing options...
invite Posted October 18, 2004 Author Share Posted October 18, 2004 Merci pour cette reponse rapide ! Link to comment Share on other sites More sharing options...
theocrite Posted October 18, 2004 Share Posted October 18, 2004 Pas de pbs Link to comment Share on other sites More sharing options...
ran-tan-plan Posted October 18, 2004 Share Posted October 18, 2004 si ca t'intéresse, tu trouvera tout a propos du code MySQL dans la documentation officielle http://www.nexen.net/docs/mysql/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.