se7enet purgatorio

Page 1 of 1 1
Topic Options
Rate This Topic
#16162 - 11/23/07 12:48 PM Help with Admin
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
I'm working on an admin section and I'm almost finished.
But in my edit item prefixes/suffixes sections...When I try to update the field "unique", the database picks it up as the mysql UNIQUE. Took me forever to figure out why it wasn't working.

UPDATE <<itemprefixes>> SET unique='$unique' WHERE id='$id' LIMIT 1
Doesn't work \:\(

Thanks for the help.

Top
#16164 - 11/24/07 05:42 PM Re: Help with Admin [Re: Sephiroth]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
Possible that UNIQUE is one of those sql key words that are reserved for stuff. Happened to me once. There is something you can do to fix it I think. i cant remember. Or you could just rename the column.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#16167 - 11/24/07 08:17 PM Re: Help with Admin [Re: AnmanIndustries]
Jamin Administrator
Cookie Crisp
****

Registered: 02/25/05
Posts: 2649
Loc: Texas

Offline
Use "tablename.column" - in this case, UPDATE <<itemprefixes>> SET <<itemprefixes>>.unique='$unique' WHERE id='$id' LIMIT 1.

That should fix it. If it doesn't, then, um, I guess you'll need to rename the column or something.

---Jamin
_________________________
Diablo 3 Lead Designer Jay Wilson:
“The development of a Blizzard game is sometimes a long affair. This is how long it took us to be ready.”

Top
#16168 - 11/24/07 10:37 PM Re: Help with Admin [Re: Jamin]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
Well, it didn't work. I guess I'll just leave the field alone and edit it manually in the database.

Thanks for the help though.

The admin section isn't fancy with selection boxes and whatnot. Just a bunch of input fields. I'll slap together the Add ... sections soon and upload the completed admin file somewhere.

Top
#16169 - 11/24/07 10:40 PM Re: Help with Admin [Re: Sephiroth]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
Doh. I forgot to save the file after making the changes. Works perfectly!

Edited by Sephiroth (11/25/07 01:05 AM)

Top
#16182 - 11/27/07 05:20 AM Re: Help with Admin [Re: Sephiroth]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
A dot. that was it. The answer to all our problems.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
Page 1 of 1 1


Hop to:

se7enet

Barack Obama Logo