Ok another thing. I'm suppose to add this...
Code:
AND ".constant("PREFIX")."owned_adoptables.tab = '{$tab}'
to the myadopts.php query... but when I do it still doesn't list the tabs.
Is this correct for functions.php?
Code:
function gettabs() {
$formcontent = "";
$result = $GLOBALS['adopts']->select("tabs", array("username", "name"), "username = '{$username}'");
while ($row = $result->fetchObject()) {
$tabname=$row->name;
$formcontent = $formcontent."<option value='myadopts.php?tab=".$tabname."'>".$tabname."</option>";
}
return $formcontent;
}