MYSQL/PHP - How to make a “Sort By” dropdown for sorting results drawn from mysql?

Here is the PHP code (don't forget to escape user input before sending it to DB engine).

Unfortunatly, you cannot submit another query via php without reloading the page. You will have to use javascirpt. Ajax is what you're looking for.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions