View Single Post
  #1  
Old 10-25-2009, 01:46 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,866
Arianna will become famous soon enough
Default Gender? [answered]

Being the PHP beginner that I am, I know I messed something up.
I added a new column to the owned_adoptables table, Gender. I had only one pet on the system, and I edited the myadopt action stats so that it showed the gender too.
I manually entered the gender via phpmyadmin, no big deal yet, because I have a problem which I encountered.
It will display the gender, but this seems to totally lock out any new adoptables. xP
How do I get around this? Also, if you know, how can I set it so on adoption it chooses either Female or Male (50/50 chance) and inserts it into the table?
Thanks,
Arianna
[hr]
EDIT: I managed to make it so the default is female, and so it inserts that in - however, I'm stuck on how I can insert a random chance which chooses either 'Male' or 'Female' for the gender field.
Reply With Quote