I wanna insert 0 to some db table\'s fields but can\'t get it work. The piece of code from my signup php script looks like that.
...
if (isset($type)) {
Group is a keyword, it needs to be wrapped around quotes. Also, it doesn't really look like you're doing any sanitisation, if not, you should.