php - MySQL query with boolean involved -


i wanna db, have table includes row called online, 0 , 1 "atributes". now, want update users ranks when online. tried update users set rank = "2" 'online' = true didn't work. tried update users set rank = "2" 'online' = 1 didn't work either.

any answers?


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -