View Full Version : fix this
kaotic
January 11th, 2003, 12:46 AM
anyone know how to fix this sql error
Error
SQL-query : [Edit]
INSERT INTO ibf_categories (id, position, state, name, description, image, url) VALUES (-1, NULL, NULL, '-', NULL, NULL, NULL)
MySQL said:
Duplicate entry '-1' for key 1
eyezberg
January 11th, 2003, 08:37 AM
How/why to you want to set the id to -1?
What are these fields properties, auto-increment, etc?
Should start at 0..what do you want to do here?
If you want to remove stuff, use either drop to get rid of the table, or at least select by ID and then overwrite, but not MINUS 1!?
DDD
January 11th, 2003, 10:56 AM
yes mysql will read those as a duplicate unless the field is setup as nvarchar or something like that. But yes why would you want a negative 1 as a prim key. Unless that is a valid value like from a form or something and you atre using it as a prim key. But if it is auto increment.....then no need for -1
Eyes
How did you do your footer? I could use a effect like that. shoot me a tut or something.
eyezberg
January 12th, 2003, 04:35 AM
All you need and more at
http://downloads.junioronline.us/
, one of my favorite script sites, the guy is too good.
check quicksilver, egoflag, repel...all of'em.. :)
Are ou very good with PHP / mySQL ? could need a hand on something..
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.