select count(id) as 'ok' from tableName where `owner`=:ownerId and (`date` between :lowDate and :hiDate)
$doc = new DomDocument('1.0', 'utf-8');
$doc->loadXml($text);
$xp = new DomXPath($doc);
foreach ($xp->query('//src') as $src_node) {
$pre_node = $doc->createElement('pre');
$pre_node->appendChild($src_node);
$src_node->parentNode->replaceChild($pre_node, $src_node);
};
$new_text = $doc->saveXML();
select a.id, a.name, count(b.id) from users a
left join articles b on b.user_id = a.id
group by a.id, a.name
var myMessageBox = new CustomMessageBox();
myMessageBox.ShowDialog();
Во втором варианте можно и свой класс - наследник Form создать со всем нужным, для него тоже должен ShowDialog() работать. $iterator = new RegexIterator(
new DirectoryIterator(
$dir2,
FilesystemIterator::KEY_AS_PATHNAME
| FilesystemIterator::CURRENT_AS_FILEINFO
| FilesystemIterator::SKIP_DOTS
),
'~[^a-d]~'
);
foreach ($iterator as $file_info) {
$filename = $file_info->getBasename();
};