Welcome lobby via Navicat

Jwake

Member
Feb 12, 2016
140
10
Uhh, Hello.
So, today I was wondering if someone could help me set a welcome lobby via navicat. I know how to do it in phpMyAdmin/Xampp but i've never really done it on Navicat. - I wanna do this to set a welcome lobby on my hotel.
 

Occult

Member
Oct 14, 2011
72
5
What do you mean???
UPDATE users SET home_room = 'ROOMID';
> This updates all existing users homeroom.

But you also need to set the default so that all future users who register have the desired homeroom.

ALTER TABLE users ADD CONSTRAINT DF_homeroom DEFAULT 'ROOMID' FOR home_room;
> This sets default for all future users.

(Replace 'ROOMID' with your desired room id).
 

Jwake

Member
Feb 12, 2016
140
10
UPDATE users SET home_room = 'ROOMID';
> This updates all existing users homeroom.

But you also need to set the default so that all future users who register have the desired homeroom.

ALTER TABLE users ADD CONSTRAINT DF_homeroom DEFAULT 'ROOMID' FOR home_room;
> This sets default for all future users.

(Replace 'ROOMID' with your desired room id).
oo ok, thanks!
 

Users who are viewing this thread

Top