![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 137 Pomógł: 8 Dołączył: 16.12.2011 Skąd: Kraków Ostrzeżenie: (0%) ![]() ![]() |
mam problem.
kiedys sie to robilo, a teraz sie zapomnialo....poprostu umiejetnosc nie wykorzystywana zanika. przejdzmy do tematu: baza danych skladac sie bedzie z 4 tabel: categories Kod cat_id int(11) nazwa varchar(20) users Kod user_id int(11) AUTO_INCREMENT PRIMARY KEY user_name varchar(20) user_password varchar(20) user_email text user_www text user_confirmed tinyint(1) news Kod news_id int(11) AUTO_INCREMENT PRIMARY KEY news_date date news_cat int(11) news_user_name varchar(20) news_title varchar(35) news_link varchar(35) news_short text news_whole text news_view int(11) comments Kod comment_id int(11) AUTO_INCREMENT PRIMARY KEY comment_news_id int(11) comment_user_name varchar(20) comment_user_email text comment_user_www text comment_content text nooooo i tak: 1. w tabeli news kolumna "news_user_name" to kolumna "user_name" z tabeli users 2. w tabeli comments kolumna "comment_news_id" to kolumna "news_id" z tabeli news 3. w tabeli comments kolumna "comment_user_name" to kolumna "user_name" z tabeli users 4. w tabeli comments kolumna "comment_user_email" to kolumna "user_email" z tabeli users 5. w tabeli comments kolumna "comment_user_www" to kolumna "user_www" z tabeli users chyba, ze te trzy ostatnie da sie jakos inaczej zrobic? jak wogole utworzyc takie relacje??baaardzo wdzieczny za pomoc. kiedys wszystko bylo klarowne, teraz nie moge sie z tym pozbierac (IMG:style_emoticons/default/sad.gif) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 24.08.2025 - 19:19 |