function moja_obsluga_bledow($numerbl, $ciagbl, $plikbl, $liniabl) { echo "<br /><table bgcolor='#cccccc'><tr><td> <p><b>BَD:</b> $ciagbl</p> <p>Proszę spróbować ponownie lub skontaktować się z administratorem i przekazać, że bł±d wyst±pił w linii $liniabl pliku '$plikbl'</p>"; if ($numerbl == E_USER_ERROR) { // zamknięcie otwartych zasobów, doł±czenie stopki strony itp. exit; } } // ustawienie obsługi błędów
i teraz w kodzie wywala mi:
Kod
<p><b>BŁĄD:</b> strtotime() [<a href="http://strona/function.strtotime">function.strtotime</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead</p> <p>Proszę spróbować ponownie lub skontaktować się z administratorem i przekazać, że błąd wystąpił w linii 26 pliku '/var/www/sites/yoyo.pl/s/o/strona/test.php5'</p>
<p><b>BŁĄD:</b> date() [<a href="http://strona/function.date">function.date</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead</p> <p>Proszę spróbować ponownie lub skontaktować się z administratorem i przekazać, że błąd wystąpił w linii 26 pliku '/var/www/sites/yoyo.pl/s/o/strona/test.php5'</p><p>
</p>
<p><b>BŁĄD:</b> date() [<a href="http://strona/function.date">function.date</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead</p> <p>Proszę spróbować ponownie lub skontaktować się z administratorem i przekazać, że błąd wystąpił w linii 26 pliku '/var/www/sites/yoyo.pl/s/o/strona/test.php5'</p><p>
</p>
Wcze¶niej nic nie wywalało ;P Kod z test.php5:
$log = dbquery("SELECT * FROM tabela WHERE do=".$user -> id." ORDER BY id DESC"); while($lista=dbarray($log)){ echo'<tr><td> <b>Wydarzenie:</b><br />
Tabela czas jest typu DATETIME.