![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 15 Pomógł: 0 Dołączył: 29.12.2012 Ostrzeżenie: (0%) ![]() ![]() |
Tak jak w temacie.
Jeżeli mam funkcję zaloguj(); to wyskakuje mi błąd Cytat Fatal error: Call to a member function prepare() on a non-object a jeżeli zaloguj($db) to wyskakuje: Cytat Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `id` = '(jakieś id)' AND `password` = '(jakieś hasło)'' Kod:
|
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 389 Pomógł: 141 Dołączył: 11.04.2009 Ostrzeżenie: (0%) ![]() ![]() |
SELECT id, password FROM tabela WHERE
Ten post edytował athei 1.02.2013, 23:49:24 |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 15 Pomógł: 0 Dołączył: 29.12.2012 Ostrzeżenie: (0%) ![]() ![]() |
Właśnie miałem pisać, żezauważyłem to wreszcie i skrypt śmiga elegancko
![]() Temat do zamknięcia ![]() |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 13.07.2025 - 20:32 |