값 "-1"을 데이터베이스에 삽입 할 수 없으므로 테이블을 설정할 필드는 int(10)
입니다. 문제가 무엇인지 알 수 없습니다. 당신이 나를 도울 수. 고맙습니다.데이터베이스에 '-1'값을 삽입 할 수 없습니다.
$sql2="INSERT INTO attendance_count(username,date,count_time,appendix)VALUES('$applicant','$date1','-1','$altext')";
mysql_query($sql2);
*이 count_time되는 데이터 타입되어야 하는가? – World
데이터 유형은 int (10)입니다. – user1902899
그러면 -1을 따옴표 안에 넣으면 안됩니다. – World