답변 4개
채택된 답변
+20 포인트
댓글을 작성하려면 로그인이 필요합니다.
4년 전
</p>
<p> // value = ~~~ 라고했어야 했는데 vaslue 라고 오타가 있었네요.. 이거 수정하니까 됐습니다 감사합니다ㅎㅎ</p>
<p> $form_id = '<input type="hidden" name="id" value="'.$_GET['id'].'">';</p>
<p>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
sinbi
Expert
4년 전
아래 코드로 변경해서 잘 되는지 체크해 보세요.
$escaped['name'] = (isset($row['name']) && $row['name']) ? htmlspecialchars($row['name']) : '';
$escaped['profile'] = (isset($row['profile']) && $row['profile']) ? htmlspecialchars($row['profile']) : '';
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 2개
�
웹공부합니다
4년 전
�
엑스엠엘
4년 전
QA게시판 질문에 소스는 텍스트로 올려 주시기 바랍니다.
$row에 값이 없는 경우( select * from author)
어떻게 할지 생각해야 합니다.
$escaped['name'] = '';
$escaped['profile'] = '';
...
if( $result) {
$row= mysqli_fetch_array( $result);
...
if( $row) {
$escaped['name'] = htmlspecialchars($row['name']);
$escaped['profile'] = htmlspecialchars($row['profile']);
} else {
....
}
} else {
...
}
$row에 값이 없는 경우( select * from author)
어떻게 할지 생각해야 합니다.
$escaped['name'] = '';
$escaped['profile'] = '';
...
if( $result) {
$row= mysqli_fetch_array( $result);
...
if( $row) {
$escaped['name'] = htmlspecialchars($row['name']);
$escaped['profile'] = htmlspecialchars($row['profile']);
} else {
....
}
} else {
...
}
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
어떤부분에서 오류가 뜬거인가요 ? 
$escaped['name'] = htmlspecialchars($row['name']);
$escaped['profile'] = htmlspecialchars($row['profile']);
입니다