Jestem bardzo zielony w temacie i mam taki problem: w pliku index.php mam cały kod strony:
<?php $main = true ; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="icon" type="image/x-icon" href="img/favicon.ico" /> <?php require_once('engine/base.class.php') ; $action = @$_GET['page'] ; $id = @$_GET['id'] ; $lang = $_GET['lang'] ; else $lang = 'PL' ; ..... ..... ..... else if($action == 'cat') { $link = Base::connect() ; $q = 'SELECT `name` FROM `tree` WHERE `id` = :id LIMIT 1' ; $link = Base::connect() ; $result = $link->prepare($q) ; $result->bindValue(':id', $id, PDO::PARAM_STR) ; $result->execute() ; $data = $result->fetch() ; $data['desc'] = $data['name'] ; $data['keywords'] = $data['name'] ; } ?> <link href="styl.css" rel="stylesheet" type="text/css" > <link rel="stylesheet" type="text/css" href="jqueryslidemenu.css" > <script type="text/javascript">
I w przeglądarce pojawia się tylko pierwsza część HTML, reszta jest ignorowana.
Kod wyświetlany w przeglądarce:
Wszystko jest wrzucone na serwery nazwy.pl, nie jestem w stanie sobie z tym poradzić. Dodam jeszcze że wcześniej wszystko dobrze działało
