need help converting this code from ver. 1.3.2 to 1.3.4
already tried to change the code but cant make it work.
PHP Code:
else
{
$stmt = $mysidia->db->select("owned_adoptables", array(), constant("PREFIX")."owned_adoptables.owner = '{$mysidia->user->username}'");
$count = 0;
while($adopt = $stmt->fetchObject())
{
if($adopt->currentlevel <= 6) { $count++;}
}
if($count >= 5)
{
$mysidia->page->settitle("Too many eggs");
$mysidia->page->addcontent("You've got too many eggs and should wait until you've hatched one.");
}