Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Rejestracja
Zmyslak
post
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 16.02.2009

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


Witam!

W tej linijce
Kod
$this->c=@mysql_query("select username from users where username='$susername'");

Jest następujący błąd:
Kod
Fatal error:  Using $this when not in object context in /home/fotozrzut/domains/fotozrzut.pl/public_html/rejestracja.php on line 38



Bardzo proszę o pomoc (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Ten post edytował Zmyslak 16.02.2009, 22:57:32
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Zmyslak
post
Post #2





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 16.02.2009

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


Naprawdę nikt nie wie co jest źle?

Jest mi to bardzo potrzebne (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
jezoo
post
Post #3





Grupa: Zarejestrowani
Postów: 92
Pomógł: 3
Dołączył: 4.04.2006

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


Cytat(Zmyslak @ 17.02.2009, 09:48:24 ) *
Naprawdę nikt nie wie co jest źle?

Jest mi to bardzo potrzebne (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

wyzej bylo powiedziane, zebys pokazal CALY skrypt a ty pokazales jego czesc, my nie jestesmy jasnowidzamy czy to jest klasa czy funkcja

btw, ten blad powturzy Ci sie jeszcze tu
  1. <?php
  2. $this->d=mysql_fetch_object($this->c);
  3. ?>

i tu
  1. <?php
  2. if(is_object($this->d)) { $serror="Podany login jest już zajęty.<br>"; }
  3.        $this->c=@mysql_query("select username from users where username='$susername'");
  4.        $this->d=mysql_fetch_object($this->c);
  5.        if(is_object($this->d))
  6. ?>


reasumujac
wywal $this i zostaw sama zmienna $c lub $d czy jak tam masz.

Ten post edytował jezoo 24.02.2009, 11:44:19
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: 15.10.2025 - 19:50