View Single Post
  #6  
Old 02-25-2011, 11:12 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 618,414
Hall of Famer is on a distinguished road
Default

I see where the problem is now, find this line from your doadopt.php file:

PHP Code:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('',  '$type', '$name','$loggedinname','0','0', '$code',  '','$alts','fortrade','no','$gender')"); 
Replace with:
PHP Code:
mysql_query("INSERT INTO ".$prefix."owned_adoptables VALUES ('',  '$type', '$name','$loggedinname','0','0','0','0','0','0','0', '$code',  '','$alts','fortrade','no','$gender')"); 
Note the seven zero's here. I am assuming that all the five new columns you add in your sql table has default value 0, you can change them to whatever you like though. Whenever you make changes in owned_adoptables table, make sure you edit this mysql query line in doadopt.php to make sure the total number of columns from your script file matches the total number of columns in your database table.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote