![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 9 Pomógł: 0 Dołączył: 6.03.2008 Ostrzeżenie: (0%) ![]() ![]() |
Mam dwie tabelki
[profils_comments] IDprofils IDComment [comments] IDComment IDNadawca Data Text i teraz dodaje sobie komentarz
i pole IDComment dodaje sie automatycznie o jedno wieksze od poprzedniego, jak zrobic zeby jakos do tabeli [profils_comments] wpisywac ID komentarza ktory wlasnie dodalismy do tabeli [comments] ? Zeby otrzymac cos takiego w tabelkach [profils_comments] 1013 100020 [comments] 100020 1231 15-12-2008 Blebleble Czy lepiej zrobic jedna tabele [comments] IDComment IDprofils IDNadawca Data Text |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 1 387 Pomógł: 273 Dołączył: 18.02.2008 Ostrzeżenie: (0%) ![]() ![]() |
mysql_insert_id():
http://pl.php.net/manual/en/function.mysql-insert-id.php -------------------- XMPP: l0ud@chrome.pl
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 18.07.2025 - 06:49 |