I’m testing MySQL For my New Project.
I Used Deephost MySQL Extension Which Is Based on @Taifun Web Method.
my Problem is that I want to get data sort by ID But It’s get data Randomly.
Example I want to get data by 1,2,3,4,5
But It Show Like This 5,3,1,4
I Search This on Youtube and follow this YouTube method but my problem is still there
/////////// OBTENER ORDENADO - GET SORT /////////
if(isset($_POST['btnOrdenar'])){
$Columna=$_POST['Columna'];
$hacer = mysqli_query ($link, "SELECT * FROM personas ORDER BY `$Columna` ASC");
enviar_respuesta($hacer);
}
Friend, the tip from @George_Loungos was good tip
The Select command has an order by clause that allows you to order as you wish.
The tip @juananton1991 is also another good tip.
There are 3 types of access mentioned in this topic: @Taifun , Deep Host and @juananton1991 In short: Deep Host has a history of not being supported.
Indicate reading SQL commands.
@msr79526 in mysql site php my admin, when you open you database, there you will see an option of “Oprations” after selecting that,you will see an option, “Alter table order by” in that select your column for example column name is “ID” select that and select option Ascending below and set go. and you will get list on order.