Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MSSQL][PHP]Zapytanie pdo świruje, jw
miras
post
Post #1





Grupa: Zarejestrowani
Postów: 1 004
Pomógł: 9
Dołączył: 18.01.2011
Skąd: Siedlce

Ostrzeżenie: (30%)
XX---


Witam, mam taką funkcję:

  1. public function calendar($priority, $user_email) {
  2. $this->messages = $this->pdo->query("SELECT id, user_email, priority, topic, content, date FROM calendar WHERE `priority`='{$priority}' AND `user_email`='{$user_email}' OR `user_email`='0' ORDER by id ASC");
  3. return $this->messages;
  4. }


jest tutaj coś źle? bo zwraca mi głupoty, wcale nie się nie "słucha" warunków zapytania.

Dzięki z góry!
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
miras
post
Post #2





Grupa: Zarejestrowani
Postów: 1 004
Pomógł: 9
Dołączył: 18.01.2011
Skąd: Siedlce

Ostrzeżenie: (30%)
XX---


Nie łapię ? (IMG:style_emoticons/default/businesssmiley.png)

Jeżeli chodziło o to:

  1. public function calendar($priority, $user_email) {
  2. $this->messages = $this->pdo->query("SELECT id, user_email, priority, topic, content, date FROM calendar WHERE `priority`='{$priority}' AND (`user_email`='{$user_email}' OR `user_email`='0') ORDER by id ASC");
  3. return $this->messages;
  4. }


to niestety bez zmian...

Ten post edytował miras 4.02.2015, 20:07:46
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 26.09.2025 - 15:16