Recommended Approach for Load Datatable from Database Table (PHP/SQL Server)

Recommended Approach for Load Datatable from Database Table (PHP/SQL Server)

dmm001dmm001 Posts: 8Questions: 5Answers: 0

Hi, Many of these technologies are new to me as I have not been a programmer for a very long time. I would like to understand if I am only currently interested in DataTables (not the Editor) what would be a good/recommended way to load/initialize a Datatable with the rows from a database table. I know that I could simply write some PHP to open a recordset and output the fields with the required html tr/td formatting, but I sense that there is a better way to do this using Ajax to call a PHP Rest API for the database call or some other approach?

I appreciate any input you can provide.

Answers

  • kthorngrenkthorngren Posts: 22,046Questions: 26Answers: 5,083

    The Ajax docs explain using ajax loaded data. Take a look at these ajax loaded examples. You might be interested in this blog that discusses using the Editor server side libraries with Datatables. It doesn't require using Editor client side nor the license. Just might make it easier for you to handle ajax loaded data.

    Kevin

  • dmm001dmm001 Posts: 8Questions: 5Answers: 0

    Thanks @kthorngren. I will be sure to take a look.

Sign In or Register to comment.