![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 27.08.2007 Skąd: Jastrzębie Zdrój Ostrzeżenie: (0%) ![]() ![]() |
Witam
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 '(IMG:http://www.php-fusion.pl/4demo/images/geburtstag.gif) '; 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 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 8.10.2025 - 05:37 |