$today = date('Y-m-d H:i:s');
$link = mysqli_connect("localhost", "user", "password", "db");
$sql = "DELETE FROM oc_t_vip WHERE end_date < date('$today ')";
$today = date('Y-m-d H:i:s');
$link = mysqli_connect("localhost", "user", "password", "db");
$sql = "DELETE FROM oc_t_vip WHERE end_date < date('2016-11-03 00:04:14 ')";