mysql_query() expects parameter 2 to be resource, boolean given in
Web 프로그램/Web 디버깅 2019. 10. 30. 15:55728x90
mysql_query() expects parameter 2 to be resource, boolean given in
DB 데이터 업데이트 작업을 하는데 MySQLi 가 아닌 MySQL 로 하다보니 위와 같은 메시지가 나온다.
이런 메시지가 나오는 것은 MySQL 연결 정보가 제대로 연결되지 않아서다.
$db= mysql_connect("localhost","root","user_password");
mysql_select_db("dbname", $db);
728x90
'Web 프로그램 > Web 디버깅' 카테고리의 다른 글
[php] javascript ajax 디버깅 요령 (0) | 2021.11.24 |
---|---|
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data (0) | 2020.03.05 |
Web 취약점 점검툴 (0) | 2019.04.07 |
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given (0) | 2018.07.24 |
PHP 함수의 결과는 정수일까? String일까? (0) | 2018.06.24 |