What's the best way to run a mysql query to delete a row if it equals the date in the expire column?
This is my current code:
$sql = "DELETE * FROM table WHERE DATE(expire) = CURDATE()";
$q = $conn->prepare($sql) or die("failed!");
// Bind the params to the placeholders
$q->execute();