I have an complex sql query and i would like to check if user is active and activated in WHERE clause
The query is running on a joomla 2.5
Can someone explain me which fields Joomla uses/edits to activate a user and how can I do that ?
SELECT u.id
FROM #__users u
WHERE
-- [many clauses]
AND
[user is activated and active]
In the #__users
database table, you will see a column called activation .
So in your query, you can simply use:
AND activation = null
Just for reference, I hope you're using Joomla methods for your database query and not native SQL ;)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.