Sort a query via link

gesf

Active member
Yes!
Ok, first you need to use mysql_query() to run you querys!

So, take a loot...
Code:
<?php

// Like it says... ORDER(sort) BY Name
mysql_query("SELECT * FROM areas ORDER BY Name");

or...

mysql_query("SELECT * FROM areas ORDER BY From");

... and so on!

?>

BTW: If i remember right, you´ll not be able to do this (use ORDER BY), if you have some field setted as Index!

Gesf
 
Back
Top