function getsettings(){ $sql = "SELECT * FROM arena_settings"; }
Pobiera ustawienia i w 2 funkcji robie takie cos:
connect(); getsettings(); //Ilosc wiadomosci w bazie: $sql = "SELECT * FROM arena_news"; //Ustawienia pagera $ile = $setting['displaynews'];
No i wyskakuje mi taki blad:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Moze ktos pomoc?