SELECT * FROM `mytable` ORDER BY `mytable`.`column1` ASC
//connected to db successfully... $a=$conn->prepare("SELECT * FROM `mytable` ORDER BY `mytable`.`columns1` ASC") $a->execute(); while($b=$a->fetch(PDO::FETCH_ASSOC)){ echo $b['column2']; //show results }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)