Jump to content

Pedigree Chart from Barand


Tanja

Recommended Posts

in database are:

 

id, dogname, father_id, mother_id (and other, but not necassary here)

 

i "update" your script as following:

// print parent trees, sire then dam
	 if ($N < $max) {
		 $sql = "SELECT a.father_id, a.mother_id, s.dogname, d.dogname
				 FROM dog a
				    INNER JOIN dog s ON a.father_id = s.id
				    INNER JOIN dog d ON a.mother_id = d.id
				 WHERE a.id = '$dogid' ";
		 $res = mysql_query($sql);
		 list($s, $d, $sn, $dn) = mysql_fetch_row($res);
		 printTree($s, $sn, $N+1, $max);
		 printTree($d, $dn, $N+1, $max);
	 }

 

I want to link the names, but site will called with id ;-)

Link to comment
Share on other sites

at the moment the site is "in work". My example you can look under http://www.wolfdog-database.com/search_dog2.php, type Delphi in filed and search...

Later i want to call every other dog over id in url.

In Pedigree on Delphis site there are only names, so i cant call with a link the mother.

 

Now there is (for mother) only Name = Chunami, i want to have <a href=dog.php?id=14333>Chunami>/a> to call every dog in pedigree directly....

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.