Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Mysql4 do Mysql5 - błąd zapytania
Benobi
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 6.01.2013

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


Witam,

Po migracji z mysql4 na mysql5 wystąpił problem.
Na stronie pokazuje mi się komunikat:

mysql_fetch_array(): supplied argument is not a valid MySQL result resource in ... 131

Linie 129-131:

129 | $q="select gs_hr.rin$hr as rin,gs_hr.uin$hr as uin,gs_hr.cl$hr as cl,gs_hr.out$hr as out,gs_hr.f$hr as f,gs_hr.a$hr as a,gs_hr.rin$hrl as rinhrl,gs_hr.out$hrl as outhrl,gs_hr.d as d,gs_tr.r as r,gs_tr.t as t,gs_tr.tr as tr,gs_tr.otr as otr,gs_tr.htr as htr,gs_tr.hotr as hotr,gs_tr.dowed as dowed,gs_tr.a as ca,gs_tr.drin as drin,gs_tr.dout as dout,gs_tr.etr as etr from gs_hr,gs_tr where gs_hr.d=gs_tr.d";
130 | $r=mysql_query($q);
131 | while($row=mysql_fetch_array($r)){$d=$row["d"];

Po wykonaniu echo mam informację:

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 'out,gs_hr.f4 as f,gs_hr.a4 as a,gs_hr.rin3 as rinhrl,gs_hr.out3 as outhrl,gs_hr.' at line 1

Cały plik php ma 153 linie.

Muszę to uruchomić pod mysql5 ...
Czy ktoś może mi pomóc?

Pozdrawiam,
Go to the top of the page
+Quote Post

Posty w temacie
- Benobi   Mysql4 do Mysql5 - błąd zapytania   6.01.2013, 11:15:04
- - nospor   gs_hr.out$hr as out OUT jest słowem zastrzeżo...   7.01.2013, 10:07:55
- - mmmmmmm   Spróbuj dać w grawisach. [SQL] pobierz, plaintext ...   7.01.2013, 10:49:23
- - nospor   Powinno pomóc   7.01.2013, 10:54:08
- - Benobi   Bardzo dziękuję ! Benobi   7.01.2013, 14:34:06


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

 



RSS Aktualny czas: 21.08.2025 - 07:30