Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server side code example? #407

Open
spaceknight opened this issue Aug 1, 2018 · 0 comments
Open

Server side code example? #407

spaceknight opened this issue Aug 1, 2018 · 0 comments

Comments

@spaceknight
Copy link

Hello,

Thanks for this wonderful grid plugin.

I am trying to retrieve server side data from a MySQL database and use pagination. I could not see an example of a server side code (PHP) in the archive. I can easily json_encode my data but how do you produce such data like in your demo/data.json file?

{
"current": 1,
"rowCount": 5,
"rows": [
{
"id": "a0e3a286-4343-4240-8d6d-e79fa2e94b4c",
"sender": "[email protected]",
"received": "2014-04-17 15:08:03Z"
},
{
"id": "dd9f2d42-9442-404c-8d2a-dd3bd2156c03",
"sender": "[email protected]",
"received": "2014-04-16 15:19:31Z"
},
{
"id": "e9b8ede5-c1bf-4d90-b724-e7379b25f7b3",
"sender": "[email protected]",
"received": "2014-04-16 15:17:05Z"
},
{
"id": "153d3acb-efe7-4b5f-a3a9-e8ac18bdec30",
"sender": "[email protected]",
"received": "2014-04-16 15:17:05Z"
},
{
"id": "49bad60a-bbf7-42bf-b040-d901805ccbf1",
"sender": "[email protected]",
"received": "2014-04-15 11:23:06Z"
}
],
"total": 5
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant