Próbuję rozkodować datę, aby pokazywała się w portalu, ale coś nie bardzo mi to idzie

. Za każdym razem wyskakuje mi inny błąd. Przy takim kodzie wywala mi błędy
Cytuj:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in D:\Strony WWW\VertrigoServ\www\myportal\forum\common.php on line 78
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in D:\Strony WWW\VertrigoServ\www\myportal\forum\common.php on line 78
Warning: array_merge() [function.array-merge]: Argument #3 is not an array in D:\Strony WWW\VertrigoServ\www\myportal\forum\common.php on line 78
Warning: array_merge() [function.array-merge]: Argument #4 is not an array in D:\Strony WWW\VertrigoServ\www\myportal\forum\common.php on line 78
Warning: array_merge() [function.array-merge]: Argument #6 is not an array in D:\Strony WWW\VertrigoServ\www\myportal\forum\common.php on line 78
Warning: array_merge() [function.array-merge]: Argument #7 is not an array in D:\Strony WWW\VertrigoServ\www\myportal\forum\common.php on line 78
Warning: include(db/mysql4.php) [function.include]: failed to open stream: No such file or directory in D:\Strony WWW\VertrigoServ\www\myportal\forum\includes\db.php on line 35
Warning: include() [function.include]: Failed opening 'db/mysql4.php' for inclusion (include_path='.;C:\php5\pear') in D:\Strony WWW\VertrigoServ\www\myportal\forum\includes\db.php on line 35
Fatal error: Class 'sql_db' not found in D:\Strony WWW\VertrigoServ\www\myportal\forum\includes\db.php on line 60
Co jest powodem tych błędów? Byłbym wdzięczny za porady lub naprawienie błędu który mam w kodzie. Poniżej kod (jest tylko problem z datą, a raczej z połączeniem z plikiem common.php, tzn. wszystko inne działa dobrze).
[php]<?php
$baza = **Połączenie**
define('IN_PHPBB', true);
include('forum/extension.inc');
include('forum/common.'.$phpEx);
$sql = mysql_query("SELECT u.username, u.user_id, t.topic_title, t.topic_replies, t.topic_time, t.topic_last_post_id FROM f_topics t, f_posts p, f_users u WHERE t.topic_last_post_id = p.post_id AND u.user_id = p.poster_id ORDER BY t.topic_last_post_id DESC LIMIT 10");
while($row = mysql_fetch_array($sql))
{
$j = stripslashes($row['topic_title']);
$t = $j;
if (strlen($j) >20) $j = substr($j, 0, 17) . "...";
echo("<img src=\"forum/templates/subSilver/images/icon_latest_reply.gif\" alt=\"\">
<a title=\"$t\" href=\"forum/viewtopic.php?p=$row[topic_last_post_id]#$row[topic_last_post_id]\" alt=\"$t\">$j</a> ($row[topic_replies])<br/>
<img src=\"obrazki/spacer.gif\" alt=\"\" width=\"11\" height=\"3\">
<font class=\"smaller\">
Autor: <a href=\"forum/profile.php?mode=viewprofile&u=$row[user_id]\" title=\"$row[username] - zobacz profil\">$row[username]</a>,
data: create_date($board_config['default_dateformat'], $row['topic_time'], $board_config['board_timezone'])
</font><br/>");
}
mysql_close($baza);
?>[/php]
www.LotR-Online.pl - Middle-Earth Online