토픽 Registration 하기
페이지 정보
본문
Postman을 써서
id, password, name, nick, email, 메일받기, 정보공개를 입력을 받아서 Registration하는 것을 해 봤습니다.
그누보드 5.4.0.1데모에서 로그인이 되는 것을 확인했습니다.
PHP에서 mysql만들때, 4개가 default 값이 없어도 되나요? 아니면 PHP코드에서 넣어주나요?
노드에서는 mb_signature, mb_memo, mb_lost_certify, mb_profile 4개의 값을 넣어주어야 넘어가네요.
(mysql DB에서 디폴트값이 설정되어 있으면, 필요한 값만 넣어서 쓰면 되는데..)
추천0 비추천0
댓글목록

불량학생™님의 댓글


db에 직접 입력시
mb_id, mb_password, mb_name, mb_nick, mb_email 의 값이 없어도 등록됩니다.
필드가 모두 not null 로 설정되어 있고 default가 없는 값이
mb_signature, mb_memo, mb_lost_certify, mb_profile 이므로 요녀석은 뭐라도 넣어줘야 되겠지요.
default보다도 요 네녀석은 not null이 아닌 null 로 설정해도 무방하다고 봅니다.


