When I run this query on MySQL 5.0 server through PHP 4.3.10, I get an error.
PHP Code:
mysql_query("INSERT INTO `tbl_graphics` VALUES('', '$height', '$width', '$format', '$details');") or die(mysql_error());
MySQL Error:
Out of range value adjusted for column 'id' at row 1
MySQL Table Structure:
CREATE TABLE `tbl_graphics` (
`id` int(11) NOT NULL auto_increment,
`height` int(11) NOT NULL,
`width` int(11) NOT NULL,
`format` text NOT NULL,
`details` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
What am I doing wrong? How do I fix this? Thanks for all your help in advance. I really appreciate it.