Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem z funkcją getrows
misiek2592
post
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 23.04.2012

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


Witam. Zakupiłem serwer w az.pl i mam już 1 problem. Instalując skrypt wykakuje mi błąd
Fatal error: Call to a member function getrows() on a non-object in /home/xp135747/public_html/fanpack.pl/index.php on line 150
i jestem pewny że to błąd ze strony serwera ponieważ gdy mialem inny serwer to działała strona poprawnie. Czy można dodać jakąś konfigurację do pliku htaccess aby skonfigurować to?
Ta strona to www.fanpack.pl

Proszę o pomoc
Go to the top of the page
+Quote Post
markonix
post
Post #2





Grupa: Zarejestrowani
Postów: 2 707
Pomógł: 290
Dołączył: 16.12.2008
Skąd: Śląsk

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


Pokaż tą linię.

Mnie to wygląda na brak pliku tworzącego obiekt $db.

Ten post edytował markonix 14.03.2013, 19:11:07
Go to the top of the page
+Quote Post
misiek2592
post
Post #3





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 23.04.2012

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


Tutaj fragment tego kodu:

  1. $query3 = "SELECT A.PID, A.story, A.pic, B.username from posts A, members B where A.active='1' AND A.USERID=B.USERID AND A.feat='1' AND A.youtube_key='' AND A.fod_key='' order by rand() limit 5";
  2. $executequery3 = $conn->Execute($query3);
  3. $feat = $executequery3->getrows();
  4. STemplate::assign('feat',$feat);
  5.  
  6. $eurl = base64_encode("/hot");
  7. STemplate::assign('eurl',$eurl);
Go to the top of the page
+Quote Post
markonix
post
Post #4





Grupa: Zarejestrowani
Postów: 2 707
Pomógł: 290
Dołączył: 16.12.2008
Skąd: Śląsk

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


  1. var_dump($conn->Execute($query3));


Ten post edytował markonix 14.03.2013, 19:25:33
Go to the top of the page
+Quote Post
misiek2592
post
Post #5





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 23.04.2012

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


Zastąpiłem tą linijkę
  1. $executequery3 = $conn->Execute($query3);

na tą linijkę:
  1. var_dump($conn->Execute($query3));

ale błąd nadal występuje. www.fanpack.pl Nie wiem czym to może być spowodowane

Błąd jest że nie łączy skrypt wogóle z bazą danych. Czy ktoś wie jak to rozwiązać?
Go to the top of the page
+Quote Post
markonix
post
Post #6





Grupa: Zarejestrowani
Postów: 2 707
Pomógł: 290
Dołączył: 16.12.2008
Skąd: Śląsk

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


Błędne dane bazy (albo jej brak).

Mój kod nie miał rozwiązać błędu tylko wykonać małe debugowanie.
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: 11.10.2025 - 10:48