EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: thezman on March 04, 2013, 08:15:04 PM



Title: Newbie Question
Post by: thezman on March 04, 2013, 08:15:04 PM
I have a single mysql table I want to display using the DataGrid. Am I required to fetch the data from the table into a json or is there a way to populate the DataGrid directly from the mysql table?


Title: Re: Newbie Question
Post by: devnull on March 04, 2013, 09:10:44 PM
You can't do it directly, but you can create a generic PHP page and pass the query to it via the url:

soomepage.php?sql=Select * from Users where something is something





Title: Re: Newbie Question
Post by: thezman on March 05, 2013, 07:48:10 PM
Thanks. I have a PHP script to retrieve the data so I can probably just modify it for my purposes. Thanks.


Title: Re: Newbie Question
Post by: devnull on March 06, 2013, 10:02:38 PM
I guess I should state that creating a PHP page that allows SQL statements to be sent via the URL is a huge security risk !