School!
Moderator: ItL Moderators
- Maxine MagicFox
- ItL Webmaster
- Posts: 13474
- Joined: Wed Feb 27, 2008 12:20 pm
- Location: Pennsylvania
- Contact:
Barring any further setbacks, my own stupidity included, I should be able to be done with this tonight!
@_@ holy shit, I wasted a fucking hour on my own damn stupidity.
I needed a primary key. At first I thought it a good idea to make the names of an entry a primary key. So I whipped it up and then had to make codes to handle duplicate entries since they crashed the program.
Then I realized... shit... <_< a person of a different ID wouldn't be able to have the same name in the address book either! How to create an ID of some sort that is automatically generated but will not cause this issue....
So I made a field that will not show up named "PK" (Primary Key AND Player Killer - I LOVE IT!! *cough*) that is generated by the user's ID+Name fields.
EXCEPT IT WAS STILL REGISTERING AS DUPLICATE ENTRIES!! I spent an hour trying to come up with every godforsaken PK I could think up. Finally I then ripped out my error handling codes as a last ditch attempt of desperation - maybe I hadn't done it right. That's when I realized... oh my codes are perfect... I just didn't update them. I still had the program looking at the Name field for duplicates. x_x Replaced it with the PK variable and it works like a charm now. I can't believe I did that. How I overlooked it. I made the PK variable and updated the SQL commands, but I forgot that one small step. *sigh*
T-T baka ja nai.... baka ja nai!!
@_@ holy shit, I wasted a fucking hour on my own damn stupidity.
I needed a primary key. At first I thought it a good idea to make the names of an entry a primary key. So I whipped it up and then had to make codes to handle duplicate entries since they crashed the program.
Then I realized... shit... <_< a person of a different ID wouldn't be able to have the same name in the address book either! How to create an ID of some sort that is automatically generated but will not cause this issue....
So I made a field that will not show up named "PK" (Primary Key AND Player Killer - I LOVE IT!! *cough*) that is generated by the user's ID+Name fields.
EXCEPT IT WAS STILL REGISTERING AS DUPLICATE ENTRIES!! I spent an hour trying to come up with every godforsaken PK I could think up. Finally I then ripped out my error handling codes as a last ditch attempt of desperation - maybe I hadn't done it right. That's when I realized... oh my codes are perfect... I just didn't update them. I still had the program looking at the Name field for duplicates. x_x Replaced it with the PK variable and it works like a charm now. I can't believe I did that. How I overlooked it. I made the PK variable and updated the SQL commands, but I forgot that one small step. *sigh*
T-T baka ja nai.... baka ja nai!!
[] - [] - [] - []
- Maxine MagicFox
- ItL Webmaster
- Posts: 13474
- Joined: Wed Feb 27, 2008 12:20 pm
- Location: Pennsylvania
- Contact:
- Maxine MagicFox
- ItL Webmaster
- Posts: 13474
- Joined: Wed Feb 27, 2008 12:20 pm
- Location: Pennsylvania
- Contact:
- Maxine MagicFox
- ItL Webmaster
- Posts: 13474
- Joined: Wed Feb 27, 2008 12:20 pm
- Location: Pennsylvania
- Contact:
Last edited by Maxine MagicFox on Sun Apr 25, 2010 3:03 pm, edited 1 time in total.
[] - [] - [] - []
- Maxine MagicFox
- ItL Webmaster
- Posts: 13474
- Joined: Wed Feb 27, 2008 12:20 pm
- Location: Pennsylvania
- Contact:
- Centurion_Beta
- Ragelope
- Posts: 70
- Joined: Thu Apr 01, 2010 12:17 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Return to “Discussion Section”
Who is online
Users browsing this forum: Google [Bot] and 2 guests

