Jump to content

Recommended Posts

hi can anyone please help me, i am a beginner at php and mysql. i  am trying to make a family tree website similar to GEDCOM. i am having some problem what i am trying to do is make a button called spouse on the page once clicked on it will save it to the corresponding user.

 

id | firsname| lastname| spouse| MotherID| FatherID|

----------------------------------------------------------------------------------------

1| steve      | go          | 2 |      Null |        Null |

2| Julia          | steve    | 1 |      Null |        Null |

3| robert      | go        | Null |      2 |              1

 

 

i have my tables

http://img217.imageshack.us/img217/1729/tablessr7.jpg

 

this is what i am trying to achieve something similar to this

 

http://img217.imageshack.us/img217/8363/genesreunitedb3.jpg

 

PLEASE HELPPP!!!

 

Link to comment
https://forums.phpfreaks.com/topic/142239-urgent-please-helppp/
Share on other sites

i guinely didnt know

just keep it in mind next time :P

 

It is a interesting project though.

 

You could simply have a <select>menu with all the persons currently stored in the database on that person edit page.

<select>
  <option spous_id="2">Julie</option>
  <!--
  etc
  -->
<select>

after you safe that person's with the partner relation.

Later you can make it a bit more user friendly with ajax if you like.

 

Link to comment
https://forums.phpfreaks.com/topic/142239-urgent-please-helppp/#findComment-745278
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.