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

ok now I have this.. and still not working. Bear with me.
Code:
function gettabs() {
$formcontent = "";
$result = $adopts->select("tabs", array("username", "name"), "username = '{$username}'")->fetchObject();

	$i=0;
	while ($row = $result->fetchObject()) {
		$tabname=@mysql_result($data, $i,"name");
		$formcontent = $formcontent."<option value='myadopts.php?tab=".$tabname."'>".$tabname."</option>";
		$i++;
	}
	return $formcontent;
}
__________________

Check out SilvaTales
Reply With Quote