Поздравляем С Днем Рождения!

'; $xml = simplexml_load_string($xml_standart, 'SimpleXMLElement', LIBXML_NOCDATA); $dr_z = db_query("SELECT value, uid FROM {profile_values} WHERE fid=9 and value!='N;'"); $i=0; while ($dr_m = db_fetch_object($dr_z)) { $dr_dmy = unserialize($dr_m->value); if (($dr_dmy['day']==$d or $dr_dmy['day']=='0'.$d) and ($dr_dmy['month']==$m or $dr_dmy['month']=='0'.$m)) { $name_z = db_query("SELECT realname FROM {realname} WHERE uid = ".$dr_m->uid." LIMIT 1"); $name_r = db_fetch_object($name_z); $xml->user[$i]->name = $name_r->realname; $xml->user[$i]->url = '/user/'.$dr_m->uid; $i++; } } $data_xml = fopen($file, 'w'); fwrite($data_xml,$xml->asXML()); fclose($data_xml); } $i=0; $xml_ = simplexml_load_file($file, 'SimpleXMLElement', LIBXML_NOCDATA); echo ''; echo ''; echo ''; echo '
'; while ($xml_->user[$i]) { echo ''.$xml_->user[$i]->name.'
'; $i++; } echo '
С Днем Рождения
'; ?>