Web Hosting Talk







View Full Version : Need a little MySQL/phpMyAdmin help


kreativ
10-29-2002, 06:21 AM
There is a setting "user_viewemail" that is either "0" or "1". It is within the "phpbb_users" table. I want to change user_viewemail to 0 for all records in the table. Is there a mysql command I can enter within phpMyAdmin to accomplish this? I think there is, but my grasp of MySQL is rather limited.

Here's a screenshot of the setting in particular within phpMyAdmin:
http://home.earthlink.net/~kreativ/phpMyAdmin.gif

Thanks for your help!

cortices
10-29-2002, 10:46 AM
The following SQL will set user_viewemail to 1 for all records in the phpbb_users table:

UPDATE phpbb_users
SET user_viewemail = 1

kreativ
10-29-2002, 12:34 PM
Cool. :) As simple as that, huh? Thanks. :D I had thought I needed 'tinyint' somewhere in there.