On Wed, Mar 28, 2012 at 11:59, Karl James <karljames@xxxxxxxxxxxxxxx> wrote: > Hey guys, > > A customer of mind is having issues uploading photos through > > A admin portal page. They get "Critical Error" If it's a pre-existing CMS, check with the associated project or company. Taking a quick look through, though, it appears as though it was a custom solution. Either way, that wouldn't be a PHP issue, directly. > They also get spit out these errors. > > MYSQL: Duplicate entry for '0' for key 1. > > MYSQL: Insert Error - Duplicate entry '0' for key 1,. Sounds like a primary key isn't properly auto-incrementing. This is, however, a MySQL issue, and again, likely not at all related to PHP. > This person is using a web form to upload his photos to this website. > > www.axiton.com admin page. > > He is trying to add photos up to the Products>accessories. That means nothing to us, as it would be viewed when logged in as an administrative user. > I did a search on google and some articles are to delete the table? > > That doesn't make sense. No, it doesn't make sense at all. Either bad - or, worse, deliberately sinister - advice from someone. > Pretty sure it had something to do with the primary key, right? That's indeed how it sounds. You could follow up by emailing mysql@xxxxxxxxxxxxxxx. -- </Daniel P. Brown> Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php