'전체 글'에 해당되는 글 160건
NOTICE
mysqli에서 get_result() 작동 안 될 때
$smtp = mysqli->prepare("SELECT * FROM #table WHERE uname = ?"); $smtp->bind_param("s", $_GET['name']); $smtp->execute(); $smtp->get_result();자신이 서버 운영자라면 아래처럼 해서 mysqlnd를 설치하고 그렇지 않다면 깔끔하게 포기하고 store_result()로... sudo apt-get install php5-mysqlnd참고로 php.net을 가 보면 "Available only with mysqlnd."라고 되어 있다.
Programming/PHP
2018. 6. 27. 18:38