new design
This commit is contained in:
@@ -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 ){
|
||||
|
||||
Reference in New Issue
Block a user