![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 39 Pomógł: 0 Dołączył: 5.11.2012 Ostrzeżenie: (10%) ![]() ![]() |
Witam napisałem funkcje na usuwanie eventów funkcja działa poprawnie ale ... jesli w get id wpisze błędne id to i tak wywala że dodało pomyślnie ... nie wiem o co chodzi ..
Proszę o pomoc!
Ten post edytował mathevs 13.04.2013, 09:10:05 |
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 673 Pomógł: 106 Dołączył: 31.12.2008 Ostrzeżenie: (0%) ![]() ![]() |
google, google, google...
http://stackoverflow.com/questions/922398/...e-was-successfu Cytat For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, mysql_query() returns TRUE on success or FALSE on error Cytat PDO::exec() returns the number of rows that were modified or deleted by the SQL statement you issued. If no rows were affected, PDO::exec() returns 0 wniosek: skorzystaj z PDO ---edit--- no zawsze też można użyć jak piszą mysql_affected_rows, ale lepiej skorzystać z PDO Ten post edytował r4xz 13.04.2013, 09:16:26 -------------------- |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 39 Pomógł: 0 Dołączył: 5.11.2012 Ostrzeżenie: (10%) ![]() ![]() |
google, google, google... http://stackoverflow.com/questions/922398/...e-was-successfu wniosek: skorzystaj z PDO ---edit--- no zawsze też można użyć jak piszą mysql_affected_rows, ale lepiej skorzystać z PDO nie da się zrobić tego jakoś prosciej bo PDO nie obczajam .. :/ |
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 673 Pomógł: 106 Dołączył: 31.12.2008 Ostrzeżenie: (0%) ![]() ![]() |
http://pl1.php.net/mysql_affected_rows
czytaj przykłady i komentarze ![]() -------------------- |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 18:47 |