stalian4002 Posted January 24, 2009 Share Posted January 24, 2009 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 More sharing options...
RichardRotterdam Posted January 24, 2009 Share Posted January 24, 2009 here's your help http://www.phpfreaks.com/page/forum-rules It's under VARIOUS THINGS NOT TO DO Link to comment https://forums.phpfreaks.com/topic/142239-urgent-please-helppp/#findComment-745186 Share on other sites More sharing options...
stalian4002 Posted January 24, 2009 Author Share Posted January 24, 2009 i guinely didnt know Link to comment https://forums.phpfreaks.com/topic/142239-urgent-please-helppp/#findComment-745205 Share on other sites More sharing options...
revraz Posted January 24, 2009 Share Posted January 24, 2009 Post the code you are using, and then post the area you need help with. Post any errors you are getting. Link to comment https://forums.phpfreaks.com/topic/142239-urgent-please-helppp/#findComment-745244 Share on other sites More sharing options...
haku Posted January 24, 2009 Share Posted January 24, 2009 Urgent? Let me get on that right away... Link to comment https://forums.phpfreaks.com/topic/142239-urgent-please-helppp/#findComment-745250 Share on other sites More sharing options...
NorthWestSimulations Posted January 24, 2009 Share Posted January 24, 2009 haha Haku, ur funny.... ...OMG! Its the urgent sygnal! Quickly Batman! We need you!! Link to comment https://forums.phpfreaks.com/topic/142239-urgent-please-helppp/#findComment-745270 Share on other sites More sharing options...
RichardRotterdam Posted January 24, 2009 Share Posted January 24, 2009 i guinely didnt know just keep it in mind next time 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 More sharing options...
Maq Posted January 24, 2009 Share Posted January 24, 2009 stalian hold on, I'm almost done writing all the code for you, don't go anywhere. Link to comment https://forums.phpfreaks.com/topic/142239-urgent-please-helppp/#findComment-745320 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.