Na początku zapomniałem, usunąć jeden komentarz, ale po połączeniu się i tak jest błąd ten sam tylko w 68 linijce (ta sama)
<?php
/******************************************************
* connection.php
* konfiguracja połączenia z bazą danych
******************************************************/
function connection() {
// serwer
$mysql_server = "localhost";
// admin
$mysql_admin = "db_db";
// hasło
$mysql_pass = "haselko";
// nazwa baza
$mysql_db = "db_db";
// nawiązujemy połączenie z serwerem MySQL
or
die('Brak połączenia z serwerem MySQL.'); // łączymy się z bazą danych
or
die('Błąd wyboru bazy danych.');}
?>
<?php
/**
* File functions:
* Kartoteka
*
* @name : kartoteka.php
* @copyright : (C) 2004,2005,2006 Vallheru Team based on Gamers-Fusion ver 2.5
* @author : Proximus
* @version : 1.0
* @since : 04.08.2010
*
*/
//
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// $Id: kartoteka.php
$title = "Kartoteka";
//require_once("includes/config.php");
/**
* Get the localization for game
*/
//require_once("languages/".$player -> lang."/kartoteka.php");
//$db -> Execute("SELECT * FROM lochylog");
$ktos = $db -> Execute("SELECT osoba, tresc, czas FROM logs");
$osoba = $rekord['osoba'];
$tresc = $rekord['tresc'];
$czas = $rekord['czas'];
echo '<td>'.$osoba.'</td>'."\r\n"; echo '<td>'.$tresc.'</td>'."\r\n"; echo '<td>'.$czas.'</td>'."\r\n";
}
//$smarty -> display ('kartoteka.tpl');
//require_once("includes/foot.php");
?>