Hello,
I need I add default condition for the requette that returns data from the database.
So I created an exception:
But it does not work and I do not understand why.
Thank you for your help
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