You are here: Re: "call to undefined function" mysql_error when adding new rows to table « All PHP « IT news, forums, messages
Re: "call to undefined function" mysql_error when adding new rows to table

Posted by davek on 07/14/06 22:12

me:
> Error updating database: Duplicate entry '127' for key 1
>
> ie, for some reason, the INSERT query is trying to enter the new row
> with the same primary key as an already existing row, which it
> shouldn't be as it's set to auto_increment.

I've just worked out why it's doing it - the primary key is a
TINYINT...

Doh!

I'll go away and leave you all in peace now (until I have another
stupid question...)

David

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация