Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2006, 04:57 AM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error key

I bought the beginning PHP5 but got error on exercises as i follow through. when i run the moviedata.php a message displayed.

Duplicate entry '1' for key 1

I checked through the lines but same as in the book.
Your help is appreciated.

Regards,

 
Old June 23rd, 2006, 05:36 AM
Registered User
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your database table is set up incorrectly, make sure your primary key is set to auto_increment.

Have fun,
Dale

Ctrl-Alt-Del





Similar Threads
Thread Thread Starter Forum Replies Last Post
<bean:message key="error.access.rights"/> sparun1607 Struts 1 September 23rd, 2011 03:08 AM
<bean:message key="PNR.INPUT"/> key has null value warsha_14 Struts 1 November 13th, 2006 07:26 AM
Primary Key Violation error code hasanali00 BOOK: ASP.NET Website Programming Problem-Design-Solution 1 April 19th, 2005 07:41 PM
Help Needed: Incorrect key file Error AlanB BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 January 22nd, 2005 06:21 PM
auto increment primary key-compile error junemo Oracle 2 June 16th, 2004 08:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.