Mam taki plik w php-fusion wyświetlający użytkownika obchodzącego dzisiaj urodziny i chciałbym, aby pod tym bylo coś takiego jak jest w phpbb by przemo, a mianowicie "W ciągu następnych 7 dni urodziny obchodzą:..."
CODE
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (file_exists(INFUSIONS."birthday_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."birthday_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."birthday_panel/locale/English.php";
}
openside(GEB_001);
$heute = "____-".date("m-d");
$result = dbquery("SELECT user_birthdate,user_name,user_id FROM ".$db_prefix."users WHERE user_birthdate like '$heute' ORDER BY user_name ASC");
if (dbrows($result) == 0) {
echo GEB_002;
}
while ($data = dbarray($result)):
echo '

echo " ".$data['user_name']."
";
endwhile;
closeside();
?>
W tym kodzie chyba wszystkie potrzebne tabele z bazy danych są, więc chyba nic nie trzeba dopisywać. Może ktoś mi to zrobić?
Pozdrawiam