That's awesome! I'm actually writing my own script, complete with posting, editing, comments, user accounts, and the like, and I learned most of the stuff I know from W3Schools and from looking at this script.
-.- WHY ME!!???????
Ch Ch.....i use this code : INSERT INTO adopts_owned_adoptables
VALUES gender
But when i click "Go" said:#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'gender' at line 2
i run this in the sql,but dont work!
what i need to do?
change the code?
INSERT INTO adopts_owned_adoptables
VALUES gender
and sorry when you dont understand what im saying,but im italian and for me is so hard make english word......
Don't worry - is there any way that you can manually insert it, via phpmyadmin or the like? 'Cause if you just insert "gender" there's no way of having an int variable and stuff like that.
SieghartZeke, I don't know if your problem has been solved yet or not, but if not you can try running the following code in sql:
Code:
ALTER TABLE `adopts_owned_adoptables` ADD `gender` varchar(40) NULL;
That should add the gender field to the owned adoptables table.
I also had a question about the gender script. I'm using it on my test site and it works great. I have it so it randomly generates a pet's gender, but I'm wondering if there is a way to have some pets only be one gender, such as female, and not be male at all while still having other adoptables get random genders?
It's nice that you asked. I was having a problem, as some pets had 'gender' alts. Basically, it meant that it was the alt image, it was female, if not, it was male. Just add a field called 'malefemale', and then it checks. If it's value is 'onlyfemale', automatically set 'gender' to 'Female'. If it is 'onlymale', set 'gender' to 'Male'. If it is blank, set 'gender' using the random code. Do you get it?