Hi, I'm trying to work with master/child tables and i've seen this example:
http://www.datatables.net/release-datatables/examples/api/row_details.html
But i want to get data from my database and in this example is created a fixed table. How can i do to call a function in a file .php which let me connect to the database and get data.
Thanks
http://www.datatables.net/release-datatables/examples/api/row_details.html
But i want to get data from my database and in this example is created a fixed table. How can i do to call a function in a file .php which let me connect to the database and get data.
/* Formating function for row details */ function fnFormatDetails ( oTable, nTr ) { var aData = oTable.fnGetData( nTr ); var sOut = '<table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">'; sOut += '<tr><td>Rendering engine:</td><td>'+aData[1]+' '+aData[4]+'</td></tr>'; sOut += '<tr><td>Link to source:</td><td>Could provide a link here</td></tr>'; sOut += '<tr><td>Extra info:</td><td>And any further details here (images etc)</td></tr>'; sOut += '</table>'; return sOut; }
Thanks