Thread: Breeding
View Single Post
  #6  
Old 10-25-2009, 02:17 PM
gabeki gabeki is offline
Premium Member
 
Join Date: Oct 2009
Posts: 24
Gender: Female
Credits: 1,313
gabeki
Default RE: Breeding

that way would be harder I guess '-' but I don't understand very well what you're trying to do x_x
is it like, just breeding two of your adoptables into one new?

I'm a PHP novice too like you, but I'll see your code e_e

$aid=@mysql_result($result,$i,"id"); //The adoptable's ID
$type=@mysql_result($result,$i,"type");
$description=@mysql_result($result,$i,"description ");
$gender=@mysql_result($result,$i,"gender");
$eggimage=@mysql_result($result,$i,"eggimage");

$query = "SELECT * FROM ".$prefix."owned_adoptables WHERE level='2' AND owner='$loggedinname'"; //is this how we select it, somehow?

for this part... you have to estabilish a $result variable first, and the $query is not being used at all.. also, the 'level' is not a colum in owned_adoptables.. do you want to select the rows just from the adoptables that are level 2?

well I'll guess you forgot an important thing.. how the user will select the adoptables that he wants to breed? .-.
I'll try to create a code to that and I'll post here
but I'm not sure I can haha x_x
Reply With Quote