Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

reshuffle the data from database using php

General discussions related to php

Moderators: macek, egami, gesf

reshuffle the data from database using php

Postby JennyH » Sun Sep 02, 2012 9:57 pm

Hello,
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...
JennyH
New php-forum User
New php-forum User
 
Posts: 12
Joined: Wed Nov 30, 2011 2:28 am

Re: reshuffle the data from database using php

Postby johnj » 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.
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm


Return to PHP General

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.