Don't know why this query doesn't work.
mysql_query("insert into mytablename (`id`) VALUES ('450')");
Here is the table structure.
CREATE TABLE `mytablename` (
`id` int(255) NOT NULL,
`test_1` longtext NOT NULL,
`test_2` longtext NOT NULL,
`test_3` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Seems to me it doesn't like empty values for test_1, test_2, etc. I assume if I could set a default value for those fields it would accept it but you can't set a default value on a text/blob field.
I'm sure I'm missing some staring me right in the face but for the life of me can't figure out why the new line won't go in. I just want a ID inserted with blank data.
I'd insert data as well but test_1, test_2, etc. are user created so I'll never know exactly how many columns are in the table.