Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82115

Add condition at the request in Server-side processing

$
0
0
Hello,
I need I add default condition for the requette that returns data from the database.
So I created an exception:
$exception = " AND etat = 2 ";
And I add the condition in the main requette.
$sQuery = "
SELECT SQL_CALC_FOUND_ROWS ".str_replace(" , ", " ", implode(", ", $aColumns))."
FROM $sTable
$sWhere 
$exception
$sOrder
$sLimit
	";

But it does not work and I do not understand why.

Thank you for your help

Viewing all articles
Browse latest Browse all 82115

Trending Articles