Jump to content

Beginner Mysql help!!!


stalian4002

Recommended Posts

hi i am trying to make a family tree website using php mysql, i have the following tables im not sure if its correct or if i am going the right way about it, can someone help me out please. i am using phpmyadmin

 

i have 5 tables:

 

USERS:

 

user_id (PK)

username

password

firstname

lastname

email

 

FAMILY_TREE:

 

user_id(FK)

family tree name

description

family tree ID(PK)

 

FAMILY_MEMBERS:

 

family memberID(PK)

firstname

lastname

date of birth

date of death

place of birth

place of death

gender

family treeID(FK)

motherID(FK)

fatherID(FK)

 

MOTHERS:

 

motherID(PK)

mother of family(FK)

mothers userID(FK)

 

FATHERS:

 

fatherID(PK)

father of family(FK)

fathers userID(FK)

 

user table: has web users details and stores password

 

family tree table: holds family tree id making it unique

 

family member: will hold all members of the family

 

mothers: will hold into who is whos mother

 

father: will hold into who is whos father

 

i just wanted to know if my table structure is correct and if im going the right way about it.

 

can someone also help me with sql join query

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/141325-beginner-mysql-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.