0
votes

Hi im trying to use Ajax editable table javascript which can be found at

https://www.webslesson.info/2017/05/live-table-data-edit-delete-using-tabledit-plugin-in-php.html

im struggling to find how to run the query with a where clause (i need to use a url id) but cant find how to pass the id to the ajax to run and filter the table accordingly?

if the url is

.php?view=day&year=2021&month=12&day=7&area=1&id=19918 

all i need is the (id).

ive tried using the following but just get a DataTables warning: table id={id} - Invalid JSON response.

<script type="text/javascript">   
function Url() {
        var pageid =  "<?php echo $id;?>";
 $.ajax(
  {
    url: 'https://graph.facebook.com/',
    data: 'pageid=id';