Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mysql] Unable to save result
Athlan
post
Post #1





Grupa: Developerzy
Postów: 823
Pomógł: 12
Dołączył: 18.12.2005

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


Pojawia się dziwny komunikat w moim kodzie:

Cytat
Warning: MySQL: Unable to save result set in ... on line ...

Warning: Supplied argument is not a valid MySQL result resource in ... on line ...


kod wygląda podobnie do tego:

  1. <?php
  2. class database
  3. {
  4. function query($query)
  5. {
  6. return mysql_query($query);
  7. }
  8. }
  9. ?>


z góry THX (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Ten post edytował nospor 29.06.2006, 12:06:32
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 7)
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 561
Pomógł: 6315
Dołączył: 27.12.2004




Cytat
kod wygląda podobnie do tego:
To tak jak w tej reklamie: ...prawie... (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

no nic, daj tak:
  1. <?php
  2. //....
  3. return mysql_query($query) or die(mysql_error());
  4. //.....
  5. ?>

To moze czegos wiecej sie dowiemy

ps: i popraw tytul o znacznik: [...] (wiecej w zasadach (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) )
Go to the top of the page
+Quote Post
Athlan
post
Post #3





Grupa: Developerzy
Postów: 823
Pomógł: 12
Dołączył: 18.12.2005

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


Cytat(nospor @ 29.06.2006, 10:31 ) *
ps: i popraw tytul o znacznik: [...] (wiecej w zasadach (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) )

widocznie musiałeś oglądać temat jak go edytowałem

zwróciło:

Cytat
Warning: MySQL: Unable to save result set in d:\foto\functions.inc.php on line 27
Incorrect key file for table: 'photos_users'. Try to repair it
Go to the top of the page
+Quote Post
nospor
post
Post #4





Grupa: Moderatorzy
Postów: 36 561
Pomógł: 6315
Dołączył: 27.12.2004




Cytat
widocznie musiałeś oglądać temat jak go edytowałem
ogladalem go wtedy, ogladam go teraz i nadal nie widze znacznika w temacie (to takie cos zawarte miedzy [...] ) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Temat: Tematyka i zasady panujace na forum Przedszkole
(tak, wiem, czepiam sie... ale diabel tkwi w szczegolach (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) )

Cytat
Incorrect key file for table: 'photos_users'. Try to repair it
No a tu masz napisane co i jak. wystarczy poguglac.
http://dev.mysql.com/doc/refman/5.0/en/repair-table.html
Go to the top of the page
+Quote Post
Athlan
post
Post #5





Grupa: Developerzy
Postów: 823
Pomógł: 12
Dołączył: 18.12.2005

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


Cytat(nospor @ 29.06.2006, 10:52 ) *
(tak, wiem, czepiam sie... ale diabel tkwi w szczegolach (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) )


ok, to będzie "[mysql] MySQL: Unable to save result", masz problem (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

dzieki (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
nospor
post
Post #6





Grupa: Moderatorzy
Postów: 36 561
Pomógł: 6315
Dołączył: 27.12.2004




Cytat
ok, to będzie "[mysql] MySQL: Unable to save result", masz problem
nie, bedzie tylko z jednym mysql w temacie (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) , poprawione

Cytat
dzieki
Rozumiem, ze juz problem rozwiązany?
Go to the top of the page
+Quote Post
Athlan
post
Post #7





Grupa: Developerzy
Postów: 823
Pomógł: 12
Dołączył: 18.12.2005

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


tak, wystarczyło dać w phpmyadminie "napraw tabelę" i działa...

P.S. ehhh, te nazwy topicków (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) w sumie dobrze że się czepiacie bo potem szukajka lepiej dziala (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

pzdr. nospor (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
dr_bonzo
post
Post #8





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


Cytat
P.S. ehhh, te nazwy topicków (IMG:style_emoticons/default/tongue.gif) w sumie dobrze że się czepiacie bo potem szukajka lepiej dziala

OMG: w koncu ktos myslacy, no wlasnie po to sie czepiamy (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) mozna by to cytowac przy regulaminie podforum (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

PS. Mozna bylo tez pogooglowac komunikat tego bledu, kilka minut szukania i masz rozwiazanie (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
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: 23.12.2025 - 13:28