Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: del gimtadienio paneles

Parašė arturas97· 2008 Rugs. 29 21:09:19
#1

@openside('Gimtadieniai');
$result=dbquery(
"SELECT user_id, user_name, DATE_FORMAT(user_birthdate, '%d') AS birth_day, EXTRACT(MONTH FROM user_birthdate) AS birth_month ".
"FROM ".$db_prefix."users ".
"WHERE EXTRACT(MONTH FROM user_birthdate)>EXTRACT(MONTH FROM NOW()) OR ".
"(EXTRACT(MONTH FROM user_birthdate)=EXTRACT(MONTH FROM NOW()) AND EXTRACT(DAY FROM user_birthdate)>=EXTRACT(DAY FROM NOW())) ".
"ORDER BY birth_month , birth_day LIMIT 0,7"
);

// Calculate Today's Date
$today = strftime("%b %d");

echo "<table width='100%' cellpadding='0' cellspacing='0'>";
if (dbrows($result) != 0) {
$months = explode("|", $locale['shortmonths']);
while ($data = dbarray($result)) {
$birthdate = $months[$data['birth_month']]." ".$data['birth_day'];
// If It's a Birthday, bold it
if ($birthdate == $today) {
$birthdate = "<span style='font-weight:bold'>Šiandien! - </span><i><a href='messages.php?msg_send=".$data['user_id']."'><font color=brown><b>sveikinti?</b></color></a></i></span>";
}
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td>
<a href='".BASEDIR."profile.php?lookup=$data[user_id]'
onmouseover=\"gpe('text: <b>".$data['user_name']."</b><hr>".$locale['XXX_004'].": ".$data['user_location']."<br><br> ".$data['user_msn'].";')\">";

echo "$data[user_name]</a></td><td class='small2' align='right'>".$birthdate."</td></tr>";
}
}
echo "</table>";
closeside();






kai imetu toki koda man pasiraso

Notice: Undefined index: XXX_004 in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24

Notice: Undefined index: user_location in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24

Notice: Undefined index: user_msn in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24

Notice: Undefined index: XXX_004 in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24

Notice: Undefined index: user_location in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24

Notice: Undefined index: user_msn in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24


Agne22 Gru 21
cepukas

Redagavo ramon· 2008 Rugs. 29 22:09:39