해피정

좋아요 (추천) 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,711
3년 전 조회 2,726
3년 전 조회 2,214
3년 전 조회 2,894
3년 전 조회 2,640
3년 전 조회 1,997
3년 전 조회 2,655
3년 전 조회 1,622
3년 전 조회 1,959
3년 전 조회 2,057
3년 전 조회 2,490
3년 전 조회 4,624
3년 전 조회 4,365
3년 전 조회 2,444
3년 전 조회 2,061
3년 전 조회 1,674
3년 전 조회 3,401
3년 전 조회 2,133
3년 전 조회 2,972
3년 전 조회 3,465
3년 전 조회 1,779
3년 전 조회 2,091
3년 전 조회 2,327
3년 전 조회 2,775
3년 전 조회 1,848
3년 전 조회 2,377
3년 전 조회 3,457
3년 전 조회 2,096
3년 전 조회 3,489
3년 전 조회 1,832