Quote:
Originally Posted by Arianna
Here :D
PHP Code:
if($gender_rand = 0){
$new_name = $male_name." & ".$female_name."'s Son";
$gender = 'male';
unset($gender_rand);
}
else{
$new_name = $male_name." & ".$female_name."'s Daughter";
$gender = 'female';
unset($gender_rand);
}
It works on the code, producing something to the like of this at the end:
Code:
Manage Ik & Random's Daughter now! It's type is Jinx and it was born on October 27th, 2009! You can change its name to your liking.
I don't believe that that is the problem, I think that it's not inserting it into the database correctly.
|
Actually I believe that that is your problem. using that in the insert would cause many issues.
basically you are trying to insert
PHP Code:
'$type','Ik & Random's Daughter','$loggedinname','0','0',
That messes up your syntax and so it won't insert.
Sea