I am making a program in php to select records from database in alphabetical order by adding, "order by 'column name'" in my query string
for example we have entries
A B M L H V V F now after showing records in alphabetical order it will fetch records in following order
A B F H L M V V
now if a my user want to see records of m then he should get records in following manner
M A B F H L V V
means searched record at top and then in alphabetical order.
So how can I get records in this manner by one query
$result=mysqli_query($con,"SELECT * from orders order by 'name'");