[eluser]Salvatore Formisano[/eluser]
No it is not because a wrong assumption was made:
as I wrote in the first post, I have a javascript which creates a query string like this one 354=1&564=2&999=3 (photo with id of 354=position 1 & photo with id of 564= position 2 & ...)
there isn't any 'position' input. The key is the photo's id, and the value is the photo's position.
In this scenario the following code
Code:
$position = $this->input->post('position');
doesn't make sense.
I created an array with php and sent it back as json and when I do that it works. But the database update doesn't happen... I'm really going nuts after this thing! :|