how to send parameters if my data is extracted from a view, serverside
how to send parameters if my data is extracted from a view, serverside

i am using serverside.
<?php
require 'serverside.php';
$table_data->get('name_table', 'id_table', array('dt1','dt2','dt3','dt4','dt5','dt6'));
but my table has no id, since it is a view that stores information from other tables, which must go in id_table, it can go null or omit this parameter?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Where did your
serverside.php
script come from? The API being used there isn't one I immediately recognise, so I'm not sure if the primary key can be nulled out or not.In our own server-side processing file, the primary key is not optional as we use it for the
count()
(it has an index, so it should be fast). The script could be readily modified if you need though.Allan
este es mi archivo serverside.php
if i use your file
server_processing.php
can I send the variable $primaryKey empty
link: https://github.com/DataTables/DataTablesSrc/blob/944252f7004cdfdc9ad14b6e6d400b1651c6aa9e/examples/server_side/scripts/server_processing.php
No - as I mentioned above:
It looks like the use is similar in your own script, so you could modify it to use
COUNT(*)
instead if you wanted.Allan