
<?php } //to jest uzupełnione, ale nie podam WAM function db_connect() { } function db_close() { } function clear($text) { } return $text; } function codepass($password) { } function hash($text) { } function check_login() { if(!$_SESSION['logged']) { return true; }else{ return false; } } function get_user_data($user_id) { if($user_id == NULL) { $user_id = $_SESSION['user_id']; } return false; } } function get_rank_data($user_id) { if($user_id == NULL) { $user_id = $_SESSION['user_id']; } $user_data = get_user_data($user_id ); $rank_id = $user_data['rank'] return false; } } function get_anime_data($anime_id) { if($anime_id){ return false; } } return false; } } }else{ return false; } } function check_perm($how_many) { if(check_login()){ $rank = get_rank_data($_SESSION['user_id']); $rank = $rank['perm']; }else{ return 0; } if($how_many != NULL){ return $rank; }else{ if($rank >;= $how_many){ return true; }else{ return false; } } } function top($from, $how_many, $by){ if($from == NULL && $how_many == NULL && $by == NULL){ return false; } } function find_anime($anime_category[1], $anime_category[2], $anime_category[3]) { SELECT `id` FROM `anime` WHERE `category_a` = '{$anime_category[1]}' OR `category_b` = '{$anime_category[1]}' OR `category_c` = '{$anime_category[1]}' OR `category_a` = '{$anime_category[2]}' OR `category_b` = '{$anime_category[2]}' OR `category_c` = '{$anime_category[2]}' OR `category_a` = '{$anime_category[3]}' OR `category_b` = '{$anime_category[3]}' OR `category_c` = '{$anime_category[3]}' '); } function summation(){ } $_SESSION['logged'] = false; $_SESSION['user_id'] = -1; } ?>
...i bardzo krótki "index.php":
<? include 'core.php'; db_connect(); ?> <link rel="Stylesheet" type="text/css" href="style.css" /> <title>AnimePlay</title> <body> fghdgfhdfghdfgh <div styles="background-color: black"> cghjdghjghjfgjhfghjfgjhfghj </div> </body>
Problem mój wygląda następująco: ten tekst w divie i poza diviem, nie wyświetla się. Tekst jeżeli jest przed include to jest widoczny, jeżeli zaś na początku "core.php" to już nie widoczny

To czego to jest przyczyna? Pomóżcie. Z góry dzięki.