해피정

좋아요 (추천) sql 쿼리문

[주] 이후 강좌수정내용의 업데이트가 안될수 있습니다.

본 강좌의 최신업데이트는 https://www.happyjung.com/lecture/3182 에서 확인가능합니다.

가급적 동일한 내용을 유지하려고 노력하지만, 우선 작업은 위 링크입니다.

 

 

아미나빌더 추천

select * from `g5_apms_like` where mb_id = '추천누른_회원ID' and to_id ='추천받은글작성_회원ID'
select * from `{$g5['apms_like']}` where mb_id = '추천누른_회원ID' and to_id ='추천받은글작성_회원ID'

delete from `g5_apms_like` where id ='글번호'
delete from `{$g5['apms_good']}` where id ='글번호'


아미나빌더 ( 영카트 ) 좋아요

select * from `g5_apms_good` where mb_id = '추천누른_회원ID' and to_id ='추천받은글작성_회원ID'
select * from `{$g5['apms_good']}` where mb_id = '추천누른_회원ID' and to_id ='추천받은글작성_회원ID'

delete from `g5_apms_like` where id ='글번호'
delete from `{$g5['apms_good']}` where id ='글번호'


그누보드5 좋아요

select * from `g5_board_good` where mb_id = '추천누른_회원ID' and bo_table = '게시판' and wr_id = '추천글_ID'
select * from `{$g5['board_good_table']}` where mb_id = '추천누른_회원ID' and bo_table = '게시판' and wr_id = '추천글_ID'

delete from `g5_board_good` where bg_id = '글번호''
delete from `{$g5['board_good_table']}` where bg_id = '글번호''

|

댓글 1개

좋은 정보 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누보드5 팁자료실

+
제목 글쓴이 날짜 조회
3년 전 조회 2,613
3년 전 조회 2,629
3년 전 조회 2,131
3년 전 조회 2,796
3년 전 조회 2,560
3년 전 조회 1,910
3년 전 조회 2,558
3년 전 조회 1,533
3년 전 조회 1,887
3년 전 조회 1,955
3년 전 조회 2,377
3년 전 조회 4,512
3년 전 조회 4,184
3년 전 조회 2,367
3년 전 조회 1,986
3년 전 조회 1,587
3년 전 조회 3,288
3년 전 조회 2,051
3년 전 조회 2,867
3년 전 조회 3,340
3년 전 조회 1,696
3년 전 조회 1,996
3년 전 조회 2,239
3년 전 조회 2,687
3년 전 조회 1,761
3년 전 조회 2,289
3년 전 조회 3,335
3년 전 조회 2,013
3년 전 조회 3,392
3년 전 조회 1,754
🐛 버그신고