HI ,
How to print the last executed query in OJS
eg . $result =& $this->retrieve(
'SELECT COUNT(*) FROM articles WHERE user_id = , array((int) $articleId)
);
i want to print (debud the query after passing article id .
Thanks
Raj
HI ,
How to print the last executed query in OJS
eg . $result =& $this->retrieve(
'SELECT COUNT(*) FROM articles WHERE user_id = , array((int) $articleId)
);
i want to print (debud the query after passing article id .
Thanks
Raj
Hi @rajkumar,
Have a look at the debug option in config.inc.php. This will dump all queries to the browser, so don’t leave it enabled on production machine.
Regards,
Alec Smecher
Public Knowledge Project Team
Thank you
Regards,
Raj