Welcome Guest, Not a member yet? Register   Sign In
Issue with database record updating: updating record inside a foreach loop?
#9

[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! :|


Messages In This Thread
Issue with database record updating: updating record inside a foreach loop? - by El Forum - 12-16-2009, 05:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB