@salt_quest = SELECT MAX(salt_quests) + 1 FROM repository_quests;
UPDATE repository_quests SET status_game_quests = 1, status_progress_registration_quests = 0, salt_quests = @salt_quest
WHERE status_accessibility_quests = 1
AND status_active_quests = 1
AND status_game_quests = 0
AND status_progress_registration_quests = 1
AND NOW() >= registration_date_quests;
name="account[number][][1]
[
"account" => [
"number" =>[
[
"1" => <значение>
],
[
"2" => <значение>
],
[
"3" => <значение>
]
]
]
]
<form action="index.php" method="post">
<input type="text" name="account[surname][]">
<input type="text" name="account[address][]">
<input type="text" name="account[phone][]">
...
<input type="number" name="account[number][13][1]">
<input type="number" name="account[number][13][2]">
<input type="number" name="account[number][13][3]">
<button type="submit">Send</button>
</form>
<?php if ($a == 5): ?>
A равно 5
<?php endif; ?>
use GuzzleHttp\Client as GuzzleClient;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\RequestOptions;
$user = [
'USER_LOGIN' => $this->getLogin(),
'USER_HASH' => $this->getKey()
];
try {
$response = $this->getClient()->request('Post', '/private/api/auth.php?type=json', [
'headers' => [
'User-Agent' => 'amoCRM-API-client/1.0',
'Content-Type' => 'application/json'
],
RequestOptions::JSON => $user
]);
} catch (GuzzleException | Exception $e) {
echo $e->getMessage() . \PHP_EOL;
exit;
}