Ver Mensaje Individual
  #29 (permalink)  
Antiguo 03/12/2010, 21:18
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Ayuda para editar el orden de los registros de una tabla

Cargo la pagina y aparecen en este orden

1. Once dropped, an Ajax query is activated
2. Dragging changes the opacity of the item
3. Returned array can be found at the right
4. It is very very easy

Agrego un nuevo item llamado "First Question" y recargo

5. First Question
1. Once dropped, an Ajax query is activated
2. Dragging changes the opacity of the item
3. Returned array can be found at the right
4. It is very very easy

Reordeno

1. Once dropped, an Ajax query is activated
5. First Question
3. Returned array can be found at the right
2. Dragging changes the opacity of the item
4. It is very very easy

Recargo

1. Once dropped, an Ajax query is activated
5. First Question
3. Returned array can be found at the right
2. Dragging changes the opacity of the item
4. It is very very easy

Agrego dos items "Second Question" y "Third Question" y recargo

7. Third Question
6. Second Question
1. Once dropped, an Ajax query is activated
5. First Question
3. Returned array can be found at the right
2. Dragging changes the opacity of the item
4. It is very very easy

Asi deberia funcionar?, lo único que ajuste fue en la query en el index.php:

Código SQL:
Ver original
  1. $query  = "SELECT * FROM records ORDER BY recordListingID ASC, recordId DESC";