a dete in this format:
2014-06-10
is not a number, it is a string. you cant do mathematical operations on a string like that. convert the date to a time stamp (a time stamp is the number of seconds since 1/1/1970). use strtotime to convert the date in the recordset to a time stamp and time() to return the current time stamp.:
<?php
if (strtotime($row_WADAtbl_posts["adexpires"]) <= time()) {
?>