I am getting the following error:
Column count doesn't match value count at row 1
when I try to run this:
insert into onmylist_person values('value1', 'value2')
My table looks like this:
describe onmylist_person;
+----------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+--------------+------+-----+---------+----------------+
| ID | int(11) | | PRI | NULL | auto_increment |
| username | varchar(16) | | MUL | | |
| person | varchar(255) | | MUL | | |
+----------+--------------+------+-----+---------+----------------+
I know it is because I am only inserting 2 values and the table has 3, but I thought the auto_increment creted an incrementing number automatically.
I want the ID to just be a "counter" incrementing on its own, so i only have to insert the 2 fields.
How do I do this?