사용자 그룹 통합 해제(해제는 삭제)
SQL은 이전 글에서 동일하게 사용된 구조.
<code>
#################그룹 통합
/*
$merge="abc";
$str1="abcdef";
$str2="lmopp";
$str3="admins";
$merge_sql="select `GrpTitle`,`GrpId`,`GrpGenCode`,`GrpAdmin` from usergroup where GrpId like '$merge'";
$merge_result=mysqli_query($conn,$merge_sql);
$merge_check=mysqli_num_rows($merge_result);
if($merge_check < 1) { echo "해당 대상이 없습니다";}
else {
while($merge_fetch=mysqli_fetch_assoc($merge_result)) {
$grpTitle=stripslashes($merge_fetch['GrpTitle']);
$grpId=stripslashes($merge_fetch['GrpId']);
$grpGenCode=stripslashes($merge_fetch['GrpGenCode']);
$grpAdmin=stripslashes($merge_fetch['GrpAdmin']);
}echo $merge_update="update usergroup set `GrpTitle` = '$grpTitle', `GrpId` = '$str1', `GrpGenCode` = '$str2' ,
`GrpAdmin` = '$str3' where `Grpid` like 'abc' and GrpIdx >=1";
~~~merge run
}
*/
####################################################
/*그룹 해체
$break_sql="DELETE FROM usergroup WHERE `GrpId` = 'abcdef' and GrpIdx >=1";
~delete run
*/
</code>
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5186 | PHP |
swallow
|
2년 전 | 942 | |
| 5185 | PHP |
swallow
|
2년 전 | 962 | |
| 5184 | PHP |
swallow
|
2년 전 | 537 | |
| 5183 | PHP |
swallow
|
2년 전 | 844 | |
| 5182 | PHP |
swallow
|
2년 전 | 778 | |
| 5181 | 기타 |
swallow
|
2년 전 | 1021 | |
| 5180 | 2년 전 | 574 | |||
| 5179 | 기타 |
swallow
|
2년 전 | 1434 | |
| 5178 | PHP |
swallow
|
2년 전 | 796 | |
| 5177 | JavaScript |
swallow
|
2년 전 | 1490 | |
| 5176 | PHP |
swallow
|
2년 전 | 1188 | |
| 5175 | 2년 전 | 566 | |||
| 5174 | 기타 | 2년 전 | 816 | ||
| 5173 | PHP |
|
2년 전 | 969 | |
| 5172 | PHP |
|
2년 전 | 1253 | |
| 5171 | 기타 |
그누GPT
|
2년 전 | 1556 | |
| 5170 | PHP |
|
2년 전 | 1051 | |
| 5169 | PHP |
|
2년 전 | 1226 | |
| 5168 | PHP |
|
2년 전 | 1200 | |
| 5167 | JavaScript |
|
2년 전 | 997 | |
| 5166 | MySQL | 2년 전 | 1191 | ||
| 5165 | MySQL | 2년 전 | 1254 | ||
| 5164 | PHP | 2년 전 | 1501 | ||
| 5163 | OS |
|
2년 전 | 843 | |
| 5162 | 웹서버 |
|
2년 전 | 891 | |
| 5161 | 웹서버 |
|
2년 전 | 975 | |
| 5160 | PHP |
|
2년 전 | 843 | |
| 5159 | PHP |
|
2년 전 | 905 | |
| 5158 | PHP |
|
2년 전 | 917 | |
| 5157 | PHP |
|
2년 전 | 942 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기