$NameVideo = $_POST ['name'];
$idVideo = $_POST ['message'];
echo $NameVideo;
$db = mysql_connect("localhost","d9",774272722");
mysql_select_db("dlx",$db);
mysql_query("SET NAMES utf8");
$resultat = mysql_query("INSERT INTO `dlx`.`videoByMe` (`id`, `DenumireaVideo`, `VideoMixID`) VALUES (NULL, '$NameVideo', '$idVideo')"); // тут был бардак с кавычками
if(!$resultat){
var_dump(mysql_error()); // тут скорее всего ругнётся, что id не может быть NULL
exit();
}
mysql_close($db);
server {
listen some_ip:443;
server_name jira.example.com;
ssl on;
ssl_certificate /etc/nginx/ssl/example-com-new.crt;
ssl_certificate_key /etc/nginx/ssl/example-com-new.key;
ssl_prefer_server_ciphers On;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
client_max_body_size 32m;
rewrite ^/jira(.*)$ $1 last;
location / {
proxy_set_header Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_redirect http:// https://;
proxy_pass http://Jira_upstream/;
}
}
SELECT p.`obj_id`
FROM `products` p
LEFT JOIN `objects` o ON p.`obj_id` = o.`id`
LEFT JOIN `objects_fields` oc ON p.`obj_id` = oc.`obj_id`
WHERE oc.`field_id` = 221 OR oc.`field_id` = 248
df -h
mysql soft nofile 65535
mysql hard no file 65535
session required pam_limits.so
(SELECT * FROM tb WHERE start_date < NOW() AND end_date > NOW() ORDER BY end_date ASC)
UNION
(SELECT * FROM tb WHERE start_date > NOW() ORDER BY start_date ASC)
UNION
(SELECT * FROM tb WHERE end_date < NOW() ORDER BY end_date DESC)
(SELECT *, 1 as f1, UNIX_TIMESTAMP(end_date) as f2 FROM tb WHERE start_date < NOW() AND end_date > NOW() ORDER BY end_date ASC)
UNION
(SELECT * , 2 as f1, UNIX_TIMESTAMP(start_date) as f2 FROM tb WHERE start_date > NOW() ORDER BY start_date ASC)
UNION
(SELECT *, 3 as f1, (UNIX_TIMESTAMP(start_date) - UNIX_TIMESTAMP(end_date)) as f2 FROM tb WHERE end_date < NOW() ORDER BY end_date DESC)
ORDER BY f1, f2 ASC
LIMIT 10,10
SELECT
*,
if(end_date < NOW(),3,if(start_date > NOW(),2,1)) as f1,
if(end_date < NOW(),UNIX_TIMESTAMP(start_date) - UNIX_TIMESTAMP(end_date),if(start_date > NOW(),UNIX_TIMESTAMP(start_date),UNIX_TIMESTAMP(end_date))) as f2
FROM t1
ORDER BY f1, f2 ASC
LIMIT 10,10