Freakin A! I got it! Before I go on though I want a more expert opinion.
In class_stockadopt
I changed
$row = $mysidia->db->select("adoptables", array(), "type ='{$adopttype}'")->fetchObject();
to
$row = $mysidia->db->select("adoptables", array(), "id ='{$adopttype}'")->fetchObject();
And in class_adoptshop
I changed
foreach($this->adopts as $stockadopt){
$adopt = $this->getadopt($stockadopt->type);
to
foreach($this->adopts as $stockadopt){
$adopt = $this->getadopt($stockadopt->id);
-edit-
That got the right details to show in the shop and pound but
Trying to actually buy it
An error has occurred.
The adoptable specified is invalid...
Boooooooooooo
Last edited by Chaos77777; 01-21-2017 at 05:22 PM.
|