if form.is_valid():
cd = form.cleaned_data
return send_email(request)
return
пропустили *
:User-agent: *
Disallow: /account/ads/
/account/ads/
тоже будет закрыт от индексации в обоих вариантах. <body.+?((term|postid|page-id)-\d+).*?">
"один продукт может принадлежать к 0:N категорий"
declare(strict_types=1);
namespace App\Tests\Common;
use Doctrine\Common\DataFixtures\Executor\ORMExecutor;
use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\DataFixtures\Loader;
use Symfony\Bundle\FrameworkBundle\Client;
trait LoadFixturesTrait
{
public static function loadFixtures(Client $client, array $fixtures, bool $append=false)
{
$fixturesLoader = $client->getContainer()->get(Loader::class);
$fixturesExecutor = $client->getContainer()->get(ORMExecutor::class);
foreach ($fixtures as $fixture) {
$fixturesLoader->addFixture(
$client->getContainer()->get($fixture)
);
}
$fixturesExecutor->execute($fixturesLoader->getFixtures(), $append);
}
}
use LoadFixturesTrait;
...
protected function setUp()
{
SomeTest::loadFixtures(static::createClient(), [ProductsFixture::class]);
}
Symfony\Bundle\FrameworkBundle\Client
, то именно этот объект нужно передавать в вышеуказанный метод. SELECT *
FROM salary
WHERE id IN (SELECT MAX(id) FROM salary GROUP BY name);
{
"abbreviation_preview": false,
}
SELECT
tbl_publication.id, tbl_publication.name, tbl_publications_media.media_url
FROM tbl_publication
LEFT JOIN tbl_publications_media ON tbl_publication.id = tbl_publications_media.publication_id
WHERE article = 1 AND status = 1 AND (media_type IS NULL OR media_type = 3)
ORDER BY id DESC LIMIT 9
wp_posts
и в where добавьте wp_posts.post_type != "revision"
SELECT min( cast( meta_value as UNSIGNED ) ) FROM {$wpdb->postmeta} LEFT JOIN {$wpdb->posts} ON {$wpdb->posts}.ID = {$wpdb->postmeta}.post_id WHERE meta_key='%s' and {$wpdb->posts}.post_type != "revision"
users username1:CL:password1
auth strong
allow username1
proxy -4 -n -a -p2222 -i222.222.222.222 -e222.222.222.222
flush
pizzas
id | name
pizzas_variants
id | pizza_id | price
preg_match('/\?v=([a-zA-Z0-9_\-]+)/', $url, $matches);
print_r($matches[1]);
$arr = [
'telephone' => '+7(999) 999-99-99',
'name0' => 'Имя 1',
'quantity0' => '1',
'name1' => 'Имя 2',
'quantity1' => '2',
'name20' => 'Имя 3',
'quantity20' => '3',
'totalCost' => '3380',
];
foreach ($arr as $k => $v) {
if(preg_match("/^([a-zA-Z_]+)(\d+)$/", $k, $matches)) {
$key = $matches[1];
$idx = $matches[2];
} else {
$key = $k;
}
if($key === 'quantity') {
continue;
}
if($key === 'name') {
printf('Name: %s, Quantity: %s<br>', $v, $arr['quantity'.$idx]);
continue;
}
printf('%s: %s<br>', $k, $v);
}
<form action="/test.php" method="POST">
<input type="text" name="name[]" value="name 1">
<input type="text" name="quantity[]" value="quantity 1">
<input type="text" name="name[]" value="name 2">
<input type="text" name="quantity[]" value="quantity 2">
<input type="submit" value="Submit">
</form>
foreach ($ObjectField_name as $k => $v) {
printf("Вопрос теста: %s\n", $v->quest);
foreach ($v->namer_ff as $kk => $vv) {
printf("\tОтвет теста: %s\n", $vv->test_text);
}
}
\
find $1 -mmin $2 \
-not -path "/dev/*" \
-not -path "/sys/*" \
-not -path "/proc/*" \
-not -path "/home/sergey/.config/google-chrome/*" \
-not -path "/home/sergey/.cache/google-chrome/*" \
-not -path "/home/sergey/.cache/mesa_shader_cache/*"
find ~ -type d -name 'public_html' -exec cp ~/optimaservis.ru/public_html/sect_inc_company-numbers.php {} \;
~/optimaservis.ru/public_html/sect_inc_company-numbers.php
SELECT s.id, s.name, GROUP_CONCAT(DISTINCT c.name SEPARATOR ', ') as classes
FROM students s
LEFT JOIN student_classes sc ON sc.student_id = s.id
LEFT JOIN classes c ON c.id = sc.class_id
GROUP BY s.name
ORDER BY s.id ASC;