Beginner question (Error)

QuestionsBeginner question (Error)
Fabio Martins asked 11 years ago

Hi all,

In my first test using phpgrid I stopped in (the grid didn't load mysql data):

Error…

{"page":"1","total":1,"records":"3","rows":[{"codigo":"101112","usuario":"Jou00e3o Monteiro","classe":"S","op1":"1","op2":"0","op3":"0","dia1":"0","dt1":"9999-12-31 00:00:00","dt2":"9999-12-31 00:00:00"},{"codigo":"102938","usuario":"Fu00e1bio","classe":"E","op1":"0","op2":"1","op3":"0","dia1":"365","dt1":"9999-12-31 00:00:00","dt2":"9999-12-31 00:00:00"},{"codigo":"120988","usuario":"Arlene","classe":"E","op1":"0","op2":"0","op3":"1","dia1":"0","dt1":"1900-01-01 00:00:00","dt2":"2050-12-31 00:00:00"}]}

Thank you!
Fabio
Brazil

1 Answers
Abu Ghufran answered 11 years ago

Also make sure, you call '$g->render();' function before any HTML is rendered (echo'd) to screen.
As it expect exact JSON format for ajax calls.

Your Answer

7 + 16 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?