after reading through most of the "dates" post I have tries the following:
i have a message posted on a mysql db, I want to let the messages not show after 14 days, but having trouble with my query statement.
first my date_submit was a timestamp but I have changed it to a date so it would work easier, here is my statement:
$sql2 = "select * from message where msg_group = '$staff_group' AND (DATEDIFF(now ,time_created) < 14)";
what am i doing wrong here? i get a "not a valid mysql statement " error.
please help. im pretty sure its just a syntax error.