Thread: Script error
View Single Post
  #6  
Old 04-30-2012, 02:33 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,423
SilverDragonTears is on a distinguished road
Default

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;
}
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 04-30-2012 at 02:44 AM.
Reply With Quote