![]() |
Query Question
This time, I need a query to change everyone's "cookieuser" field to 1. Many are set to 0, which disables their ability to join my chatroom.
|
Code:
ALTER TABLE `user` CHANGE `cookieuser` `cookieuser` SMALLINT(6) DEFAULT '1' NOT NULL; Code:
UPDATE `user` SET `cookieuser` = '1' WHERE `cookieuser` = '0'; Enjoy )O( Cloudrunner )O( |
Many thanks for your assistance. Also, do you know what exactly this column for? I'm not sure what the cookieuser thing is all about. Will there a problem if I were to alter the table like this?
|
This column is to set whether the users are using cookies to browse the board or not.
They can change that column in their user CP if they so choose. |
Be sure to remove it from the user CP and registration templates, too (or make it a hidden field).
|
Good idea. :D
|
All times are GMT. The time now is 07:08 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:
|