Okay, get this: If you delete the line that inserts the pet into the database in
mao.php, it still gets added. Something tells me it's still using the original
adopt.php to do it's work. This is because it's still sending the form data to it!
In
view/maoview.php find:
PHP Code:
$adoptForm = new Form("form", "adopt", "post");
And change it to:
PHP Code:
$adoptForm = new Form("form", "mao", "post");
The currency
is then going down, but you have to go to another page to see that.
(Still using this:)
PHP Code:
$cost = $mysidia->db->select("adoptables", array("cost"), "type='{$adopt->getType()}'")->fetchColumn();
$mysidia->user->changecash(-$cost);