new design

This commit is contained in:
2022-08-16 10:37:55 +03:00
parent cebc3aca47
commit c1cf264f28
7 changed files with 200 additions and 10 deletions

View File

@@ -4,9 +4,10 @@
require '/vhosts/beta/vendor/autoload.php';
dbl_config('vetandlife', 'mysql:host=mysql;dbname=vetandlife', 'vetandlife', 'g-34hJk-3-er2');
$currdate = date('Y-m-d H:i:s');
$future_news = db_get("SELECT ID FROM `wp_posts` WHERE `post_status` = 'future' AND `post_date` <= current_date() ");
$future_sql = "SELECT ID FROM `wp_posts` WHERE `post_status` = 'future' AND `post_date` <= '$currdate' ";
$future_news = db_get($future_sql);
if (count($future_news) == 0 ){