반응형 CS/PHP3 PHPMailer email전송 후 location.href 작동안함 if (!$mail->send()) { echo 'Mailer Error: ' . $mail->ErrorInfo; // echo 'alert("실패")'; } else { echo 'alert("성공"); location.href="index.html"'; } 메일이 보내지면(else) 홈으로 돌아가려고 하는데 location.href가 작동이 안된다. PHPMailer rediret...를 치니 자동으로 PHPMailer rediret after send로 완성이 된다.^^ email.php (Mailer 실행하는 파일)에서 SMTP를 사용하는경우 debug를 사용않게 SMTPDebug = 0 으로 세팅 // $mail->SMTPDebug = SMTP::DEBUG_SERVER; // redirect하기.. 2021. 9. 8. 함수 $num = mysqli_num_rows($result) 결과 카운트 $row = mysqli_fetch_array($result) 일반 배열 리턴 mysqli_data_seek($result,$i) 원하는 순번의 데이터 선택 레코드집합 내로 포인터를 이동. 이 함수를 수행한 후 mysqli_fetch_array()함수가 호출되면 포인터가 지시하는 레코드를 가져옴 htmlspecialchars() 문자열에 포함된 특수문자를 HTML특수기호로 변환 floor() 소수점 이하를 내림한 정수 반환 2021. 9. 5. mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, bool given in $total_record = mysqli_num_rows($result); Fatal error: Uncaught TypeError: mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, bool given in C:\xampp\htdocs\part3ex\message_box.php:47 Stack trace: #0 C:\xampp\htdocs\part3ex\message_box.php(47): mysqli_num_rows(false) #1 {main} thrown in C:\xampp\htdocs\part3ex\message_box.php on line 47 mysqli_num_row($result)값이 없을때 처리가 필요 if.. 2021. 9. 5. 이전 1 다음 반응형 최근댓글 최근글 인기글 © Copyright 2024 ttutta
최근댓글