server {
...
location /services {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
...
}
.ltext {
display: block;
float: left;
width: 550px;
border: 1px solid #000;
}
.rtext {
display: block;
float: right;
width: 550px;
border: 1px solid #000;
}
UPDATE table1, table2 SET table1.field1 = table2.field2 table1.field2 = table2.field2 WHERE table1.id = table2.id
function toFunction(){};
$(".urlparam1").click(function () { toFunction(10,'text'); });
$(".urlparam2").click(function () { toFunction(9,'text1'); });
function toFunction(){};
$(".urlparam1").click({num: 10, text: 'text'}, toFunction);
$(".urlparam2").click({num: 9, text: 'text1'}, toFunction);
<а href="#" class="urlparam" data-num="10" data-text="text"></a>
<а href="#" class="urlparam" data-num="9" data-text="text1"></a>
$(".urlparam").click(function () {
var num = $(this).data('num');
var text = $(this).data('text');
});
<а href="#" class="urlparam">
Ссылка
<input type="hidden" name="param1" value="1">
<input type="hidden" name="param2" value="2">
</а>
$(".urlparam").click(function () {
var param1 = $(self).find('param1').val();
});
$(".urlparam").click(function () {
toFunction(10,'text');
});
SELECT *, (SELECT COUNT(*) FROM sections s2 WHERE s2.parent = s1.id_sections)
FROM sections s1
WHERE s1.parent = 0
SELECT s1.*, count(s2.id_sections)
FROM sections s1
LEFT JOIN sections s2 ON s2.parent = s1.id_sections
WHERE s1.parent = 0
GROUP BY s1.id_sections