posted 12 years ago
i have this code
Code:
and a php
PHP Code:
the result is something like [{"valor1":"20"},{"valor2":"50"}]
i don't know why the ajax only works without [] like:
{"valor1":"20"},{"valor2":"50"}
what is the problem? and how i can solve that? if i change $arr[] to $arr only show the last value of the table
thanks