I have a problem with a line of sql and php code. I keep getting this error and I’m so confused as to what it is
the problem:
`Incorrect integer value: ” for column ‘ID’ at row 1
the sql code:
`CREATE TABLE` (
`` int(10) NOT NULL,
`` int(10) NOT NULL,
`` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`` varchar(100) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
then:
`ALTER TABLE
`ADD PRIMARY KEY (
`);
ALTER TABLE`MODIFY
` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
`
this is the php script:
`$sql = “INSERT INTO attendanceout (out_ID, ID, time_out, date_info, Room)
VALUES (‘$out_id’, ‘$id’, ‘$time’, ‘$date’, ‘$dataSendOut’)”;