Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Problem z private, public i kompilacją kodu.
xairo
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 5.05.2006
Skąd: Białystok

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


Kod
class Admin {

public var $errors = array();
public var $info = array();
public var $dbh;
public var $form;

private function Admin() {

$this -> dbh = new dbMySQL( DB_USER, DB_PASS, DB_HOST, DB_DATA);
$this -> form = new AdminForm();
session_save_path('tmp_');
session_start();
}

private function loginCheck() {
....


Nie wiem dlaczego zwraca mi błąd w 3ciej linijce kodu.

Kod
Parse error: syntax error, unexpected T_VAR, expecting T_VARIABLE in C:\Program Files\VertrigoServ\www\jrcasti ng\cms\include\admin.class.php on line 3
Go to the top of the page
+Quote Post

Posty w temacie


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: 22.08.2025 - 06:48