![]() |
vB3 options
Is it possible to extract a single option from the options bits for each user (specifically, the option for receiving e-mails on PMs) in a query, rather than using vB3's bitmasking function later?
|
you mean..
Code:
SELECT IF(options & 4096, 1, 0) AS emailonpm FROM user That will give you 1 if they have it enabled (YES email on PM), and 0 if they have not. |
Thanks...didn't realize that MySQL had a bitwise and like PHP.
|
But of course :)
it's not That bad a db ;) |
All times are GMT. The time now is 08:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|