Well this is what I thought right from the beginning. To do this, you will need to create a new database column called 'group' in the table adoptable and owned_adoptables. The group can have two values, namely cat and dog. The script will check if the adoptables belong to the same species group, and execute the codes for both cases. It will require a lot more work, and you may need to modify nadopt.php and doadopt.php too.
|