24.07.23 08:19 작성
·
43
·
수정됨
0
섹션 5 강의, 소스파일 실행하면 에러 발생
Fatal error: Uncaught ArgumentCountError: The number of variables must match the number of parameters in the prepared statement in ...
원인 :
php7/ch5/app/services/index.php : 14줄
[ 'username' => $username ] = first('SELECT username FROM users', $post['user_id']);
해결 :
[ 'username' => $username ] = first('SELECT username FROM users WHERE id = ?', $post['user_id']);