$sqlQuery = '
SELECT `users`,
SUM(`vklad`) AS `sum_vklad`,
SUM(TIMESTAMPDIFF(DAY, `date`, CURDATE())) AS `sum_date_diff`
FROM tablename;
';
foreach($user_input_query as $massiv) {
echo '<pre>';
var_dump($massiv['sum_date_diff']);
echo '</pre>';
}
"momentum" style scrolling
$posts = get_posts([ 'post_type' => 'event', 'cat' => '-28', 'posts_per_page' => 9, 'paged' =>$paged ]);
foreach($posts as $post) {?>
<div class="top-event-block">
<div class="upcoming-data"><?= get_the_date("M j, Y")?></div>
<div class="upcoming-title"><?= $post->post_title?></div>
<div class="upcoming-exp"><?=$post->post_content?></div>
<div class="upcoming-read-more"><a href="<?=get_permalink($post->ID)?>">Read more</a></div>
</div>
<?}