목록error (27)
SPRING :: NOTE
error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 위와같은 에러 발생 시, include 전에 아래와 같은 코드 한줄 추가#define _CRT_SECURE_NO_DEPRECATE 예) #define _CRT_SECURE_NO_DEPRECATE #include #include #include 혹은, fopen이나 scanf등 비슷한 함수 사용시 fopen_s, scaf_s등 s 함수를 써주면 해결. 해결되셨다면 아래 공감 한번 눌러주세요~
error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 해결 : It is a stressfull job moving from one version of VC++ to another without microsoft making is worse by adding: C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _ito..
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource 위와 같은 에러가 떴을 때, 여러가지 증상이 있을테지만 나와 같은 경우에는 쿼리문에서 실수가 있었다. $query = $query = "select * from user where USER_ID=".$_POST['ID']; 위와 같이 써줬는데 USER_ID를 검색 할 때 작은 따옴표를 안붙였다. 간단한 실수다. 수정된 코드는 $query = "select * from user where USER_ID='".$_POST['ID']."'";