Search
Other ReReplacer questions
Forum

ReReplacer and PLACEHOLDER in a SQL custom field

Fabio Zignale's Avatar Fabio Zignale
Hello!
I use some SQL Joomla custom fields with "fixed" queries, but what i need is make a query based on USER ID, so i need a dynamic query based on the authenticated user.

Can ReReplace replace a PLACEHOLDER put in the SQL custom field query -> with a php code that obtain user id before the execution of SQL query?

In this way I can return a real dynamic SQL query based on USER ID.

Is it possible?
Does anyone make it work in this way?
Peter van Westen's Avatar Peter van Westen ADMIN
No, it can't.
ReReplacer can only replace things in your HTML output (content passed through the plugins).
Your SQL statement is used directly in PHP code and cannot be changed by plugins.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription