reshuffle the data from database using php

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 12
Joined: Wed Nov 30, 2011 2:28 am

Sun Sep 02, 2012 9:57 pm

How can we reshuffle the data from database represent in table form? I want to reshuffle the data of table it means we can up and down that data for e.g if I want to that data in first row from last row then I want to drag the data from last row and drop in 1st row.
Is it possible?

please reply me...

php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Sun Sep 02, 2012 10:20 pm

your question is not clear.

You cannot drag and drop using php. You can sort the records in ascending order or descending order using php after you have retrieved the records from your database table. You can also sort on the database side using sql.

You can shuffle(random) your records using php.

Post Reply