Don't forget to secure your variables. Anything coming in from the user needs to be secured, otherwise your site can easily be hacked.
For:
PHP Code:
$femaleid = $_POST['female'];
$maleid = $_POST['male'];
$breed = $_POST['breed'];
I recommend:
PHP Code:
$femaleid = $_POST['female'];
$maleid = $_POST['male'];
$breed = $_POST['breed'];
$femaleid = secure($femaleid);
$maleid = secure($maleid);
$breed = secure($breed);
That will run the built in security on the variables before you use them in the database. Without this your site can be hacked by someone entering in malicious data. :)