Hello i am trying to get all the users infomation from the database and check the timestamp (fourteendays) and check it with the time now i got the time bit working but i can''t get it to send to all the when the time is > fourteendays
$result1 = mysql_query("SELECT * FROM accounts") or die (mysql_error());
while ($row1 = mysql_fetch_array($result1)) {
$users_email = $row1['email'];
$user_name = $row1['user'];
$days_time = $row1['fourteendays'];
if($timenow > $days_time){
mail( $users_email, $subject, $emailbody, $headers);
echo "email sent!";
}
}
Thank you.