Error with placholders %CURRENT_USER_ID%
-
Hello guys,
I need to make dynamic table by filering record with the current user ID logged in wordpress. In the configuration panel of the wpDataTables plugin the SQL Request made with placeholders :
———————————————–
SELECT mt_process.process_refid
,
mt_process.step1_contract_init
,
mt_process.cl_companie
,
mt_process.cl_id
,
mt_process.cl_last_name
,
mt_process.cl_first_name
,
mt_process.cl_surname
,
mt_process.fr_surname
,
mt_process.fr_id
FROM mt_process
WHERE mt_process.fr_id=%CURRENT_USER_ID%
——————————————————————–
Everytime I’ve got the ERROR message below (translated from french) when I want to apply it.
ERROR MESSAGE
>>No data extracted!
>>If you are trying to save the table for the first time, please enter a date before >>saving so that the table can be defined precisely.
>>You can delete it later if you need an empty board to start.
>>Request output: SELECT mt_process.process_refid
, mt_process.step1_contract_init
, >>mt_process.cl_companie
, mt_process.cl_id
, mt_process.cl_last_name
, >>mt_process.cl_first_name
, mt_process.cl_surname
, mt_process.fr_surname
, >>mt_process.fr_id
FROM mt_process WHERE mt_process.fr_id = 2 LIMIT 10
I don’t understand at all which date I need to set up and where ? I’ve spent hours in the documentation and also in many forums but I didn’t see anything relevant.
WordPress Configuration :
WordPress Version : 5.2.3–fr_FR,
wpDataTable Version : 2.6.1
PHP Version : 7.3
Thanks for your support.
- The topic ‘Error with placholders %CURRENT_USER_ID%’ is closed to new replies.