function costCalculator() {
result.innerHTML = parseInt(area.value) + $('.rooms.active').attr('data-attr');
}
$(function() {
$('.link').on('click', function(e) {
e.preventDefault();
$('.bar').each(function() {
$(this).css('display', 'none');
});
var block = $(this).attr('href');
if($(this).hasClass('active')) {
$(this).removeClass('active');
$(block).css('display', 'none');
}
else {
$(this).addClass('active');
$(block).css('display', 'block');
}
});
});
display: inline-block; vertical-align: top;
SELECT o.order_id, и другие колонки, op.product_id, op.order_id, p.id, p.name
FROM orders as o
LEFT JOIN order_product as op ON o.order_id = op.order_id
LEFT JOIN products as p ON op.product_id = p.id