PHP
- 9 ответов
- 0 вопросов
5
Вклад в тег
$login = filter_var(trim($_POST['login']), FILTER_SANITIZE_STRING)
$name = filter_var(trim($_POST['name']), FILTER_SANITIZE_STRING)
$pass = filter_var(trim($_POST['pass']), FILTER_SANITIZE_STRING)
;
} else if(mb_strlen($name) < 3 mb_strlen($name) > 12){
&&
} else if(mb_strlen($name) < 3 && mb_strlen($name) > 12){
$mysql = new mysqli('***', '***', '***', '***')
<?php
$currentDate = date('Y-m-d');
$currentDate = date('Y-m-d', strtotime($currentDate));
$startDate = date('Y-m-d', strtotime("01/09/2019"));
$endDate = date('Y-m-d', strtotime("01/10/2019"));
if (($currentDate >= $startDate) && ($currentDate <= $endDate)){
echo "Current date is between two dates";
}else{
echo "Current date is not between two dates";
}