관리자 회원관에서 등급을 선택 수정할 경우.
관리자 회원관리에서 등급을 선택수정을 하는 경우, 등급이 정상적으로 수정되기는 하나
잠깐사이에 아래와 같은 오류 메시지가 표시됩니다.
mysql_real_escape_string() expects parameter 1 to be string, array given in "/host 경로"/common.php on line 398.
해당 398 라인을 찾아가보니, 이런 내용이 있는데, 이스케이프 문자.. 어떻게 수정해야될까요.
391 if (isset($total_page)) {
392 $total_page = (int)$total_page;
393 }
394 if (isset($comment_id)) {
395 $comment_id = (int)$comment_id;
396 }
397 if (isset($mb_id)) {
398 $mb_id = mysql_real_escape_string($mb_id);
399 }
400 if (isset($mb_email)) {
401 $mb_email = mysql_real_escape_string($mb_email);
402 }
403 if (isset($po_id) && !is_array($po_id)) {
잠깐사이에 아래와 같은 오류 메시지가 표시됩니다.
mysql_real_escape_string() expects parameter 1 to be string, array given in "/host 경로"/common.php on line 398.
해당 398 라인을 찾아가보니, 이런 내용이 있는데, 이스케이프 문자.. 어떻게 수정해야될까요.
391 if (isset($total_page)) {
392 $total_page = (int)$total_page;
393 }
394 if (isset($comment_id)) {
395 $comment_id = (int)$comment_id;
396 }
397 if (isset($mb_id)) {
398 $mb_id = mysql_real_escape_string($mb_id);
399 }
400 if (isset($mb_email)) {
401 $mb_email = mysql_real_escape_string($mb_email);
402 }
403 if (isset($po_id) && !is_array($po_id)) {
댓글 1개
12년 전
if (isset($mb_id) && ! is_array($mb_id) ) { <--- 이렇게 해주면 되겠습니다
게시글 목록
| 번호 | 제목 |
|---|---|
| 284438 | |
| 284437 | |
| 284435 | |
| 284430 | |
| 284420 | |
| 284417 | |
| 284409 | |
| 284401 | |
| 284399 | |
| 284397 | |
| 284380 | |
| 284378 | |
| 284371 | |
| 284370 | |
| 284366 | |
| 284364 | |
| 284360 | |
| 284357 | |
| 284355 | |
| 284354 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기