i have tryed to get my results to sort with the ORDER BY statment and have gotten no results, I read up on how to use it but it wont work for me please help. My search statment is below.
$searchStmt = "SELECT * from $tableName where";
if ($first)
$searchStmt .= "first like '%$first%' and " ;
if ($last)
$searchStmt .= "last like '%$last%' and " ;
if ($street)
$searchStmt .= "street like '%$street%' and " ;
if ($telephonenumber)
$searchStmt .= "telephone like '%$telephonenumber%' and " ;
if ($mail)
$searchStmt .= "email like '%$mail%' and " ;
if ($other)
$searchStmt .= "other like '%$other%'";