Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Błąd Mysql
kawus121
post
Post #1





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 24.04.2013

Ostrzeżenie: (0%)
-----


Nie mam pojęcia co zrobiłem źle?

  1. $sth555 = mysql_query("SELECT id_grupy,id_gracz,id from grupa INNER JOIN postac ON grupa.id_gracz = postac.id or grupa.id_grupy = postac.id where id_grupy=".$postac." and id_gracz = id or id_gracz=".$postac." and id_grupy = id");


error :

<b>Warning</b>: mysql_num_rows() expects parameter 1 to be resource, boolean given in <b>C:\xampp\htdocs\dddd\ddd\wczytaj_dane.php</b> on line <b>38</b><br />
Go to the top of the page
+Quote Post
sajegib
post
Post #2





Grupa: Zarejestrowani
Postów: 352
Pomógł: 59
Dołączył: 16.01.2013

Ostrzeżenie: (0%)
-----


Wyświetl błędy mysql, najpewniej masz błąd w zapytaniu
Go to the top of the page
+Quote Post
kawus121
post
Post #3





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 24.04.2013

Ostrzeżenie: (0%)
-----


B��d:Column 'id_gracz' in field list is ambiguous

Oki mam, nie wiedziałem, że w nowym mysql trzeba wszystkie tabele zaznaczać w zapytaniu.
Go to the top of the page
+Quote Post

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: 3.10.2025 - 09:10