Welcome Guest, Not a member yet? Register   Sign In
Random DB Error
#5

[eluser]Jay Logan[/eluser]
I have made your changes. Though I don't think it works properly. I tried to add another school and got this error:

Code:
A Database Error Occurred

Error Number: 1062

Duplicate entry '0' for key 1

INSERT INTO `schools` (`abbr`, `name`, `city`, `state`, `type`, `host_id`, `id`) VALUES ('WDSK', 'WOODSTOCK', 'WOODSTOCK', 'GA', 'H', 0, 'd6f406048b2ff09224875456449a')

I hit the refresh button, and got this error:

Code:
A Database Error Occurred

Error Number: 1062

Duplicate entry '60' for key 1

INSERT INTO `schools` (`abbr`, `name`, `city`, `state`, `type`, `host_id`, `id`) VALUES ('WDSK', 'WOODSTOCK', 'WOODSTOCK', 'GA', 'H', 0, 'd6f406048b2ff09224875456449a')


So it appears to be grabbing random ID numbers without checking to see if that ID already exists in the DB.


Messages In This Thread
Random DB Error - by El Forum - 08-25-2008, 09:04 AM
Random DB Error - by El Forum - 08-25-2008, 11:04 AM
Random DB Error - by El Forum - 08-25-2008, 12:09 PM
Random DB Error - by El Forum - 08-25-2008, 12:40 PM
Random DB Error - by El Forum - 08-25-2008, 12:53 PM
Random DB Error - by El Forum - 08-25-2008, 01:20 PM
Random DB Error - by El Forum - 08-25-2008, 01:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB