![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 14 Pomógł: 0 Dołączył: 19.12.2011 Ostrzeżenie: (0%) ![]() ![]() |
Mam taką fukcję, którą wywołuje w indeksie:
W bazie są kolumny: id (auto inc), imie, naziwsko, adres, tel, email. Funkcja poproawnie dodane dane do BD, id sie incrementuje, ale mysql_insert_id() zawsze zwraca mi int(0). Dlaczego (IMG:style_emoticons/default/questionmark.gif) Ten post edytował jackal777 10.02.2012, 19:13:55 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 568 Pomógł: 192 Dołączył: 7.03.2005 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
A primary auto_increment masz nałożony na kolumnę ID. Pokaż strukturę tabeli z phpmyadmina. I jaką wersję mysql-a posiadasz?
The value of mysql_insert_id() is affected only by statements issued within the current client connection. It is not affected by statements issued by other clients Ten post edytował potreb 10.02.2012, 19:31:21 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 16.10.2025 - 16:20 |