![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 314 Pomógł: 44 Dołączył: 12.11.2010 Skąd: UK Ostrzeżenie: (0%) ![]() ![]() |
Postanowiłem przenieść się z mysqli n PDO za sugestią z tego tematu i właśnie uaktualniam moje skrypty.Jednak mam takowy problem.. mam taki kodzik
Właśnie z tym rowCount jest problem bo nie działa tak jak powinien.(albo ja go nie używam jak powinienem) , czy jest jakaś alternatywa w PDO która działałaby tak jak mysqli_num_rows? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 9 Pomógł: 1 Dołączył: 3.10.2009 Ostrzeżenie: (0%) ![]() ![]() |
http://php.net/manual/en/pdostatement.rowcount.php
"If the last SQL statement executed by the associated PDOStatement was a SELECT statement, some databases may return the number of rows returned by that statement. However, this behaviour is not guaranteed for all databases and should not be relied on for portable applications. " |
|
|
![]() ![]() |
![]() |
Aktualny czas: 7.10.2025 - 11:18 |