Błąd:
Parse error: syntax error, unexpected T_VARIABLE in MIEJSCE PLIKU on line 76
Kod:
<? class superklasa{ function dodaj( $nazwa, $opis, $numer, $tresc, $background, $komenda1, $komenda2=FALSE, $komenda3=FALSE, $komenda4=FALSE, $komenda5=FALSE) { //LACZENIE Z BAZA DANYCH include('config/db_login.php'); $endkomendy = '; '; //WYZNACZANIE WARTOSCI $komendy $komendy = $komenda1 . $endkomendy . $komenda2 . $endkomendy . $komenda3 . $endkomendy . $komenda4 . $endkomendy . $komenda5; $komendy = $komenda1 . $endkomendy . $komenda2 . $endkomendy . $komenda3 . $endkomendy . $komenda4; $komendy = $komenda1 . $endkomendy . $komenda2 . $endkomendy . $komenda3; $komendy = $komenda1 . $endkomendy . $komenda2; $komendy = $komenda1 . $endkomendy; } //SPRAWDZANIE CZY NUMER MA 1-5 ZNAKOW //SZUKANIE CENY switch($numer) { case 11111: $cena = 'cena'; break; } //WYSYLANIE DO BAZY DANYCH //WSZYSTKICH INFORMACJI mysql_query("INSERT INTO tabela('', '".$nazwa."', '".$opis."', '".$cena."', '".$numer."', '".$tresc."', '"$komendy"', '".$background."' )"); } } } ?>