Ajax request $_GET

Ajax request $_GET

RuanRuan Posts: 2Questions: 1Answers: 0
edited July 2018 in Free community support

How can I do the following:
I want to do request " if ($_GET['type']=='open') { execute sql } " this is in php

JavaScript follows
With bootstrap tables it works as follows:
$('#my_table').bootstrapTable({
url: 'myPage.php',
sidePagination: "server",
queryParamsType: "limit",
pagination: true,
queryParams: function(p){
return {
type: "open",
pagenum: p.offset / p.limit,
pagesize: p.limit,
search: p.search,
offset: p.offset,
sortname: p.sort,
sortord: p.order
};
}, code continues_)

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    This is a forum for the DataTables Javascript library. If you have a question about BootstrapTable, you'd need to ask in their support channels.

    Allan

  • RuanRuan Posts: 2Questions: 1Answers: 0

    hi allan, I am trying to move away from bootstrap tables. If you would look again you'll see that I said "With bootstrap tables it works as follows:" just so that my question is clear. I am sure would know the difference between the two sites.

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Sorry - I did miss that part, which of course changes the context of the question!

    The documentation for how to do server-side processing with DataTables is available here. There is a live example available here.

    Allan

This discussion has been closed.