if (isset($_POST['submit']) && ($daysLeft == 7)){ $stmt = $conn->prepare("UPDATE Profile SET Points= $points + $Points1 WHERE UserID=$UserID"); $stmt->execute(); echo " Well done!"; }else { } // after this i want to execute to repeat the process below....... <pre> $daysDiff = floor(strtotime($CurrDate) - strtotime($StartDate)) / (60 * 60 * 24); ceil($daysDiff); $daysLeft = ceil($Days - $daysDiff); echo "<div class='countholder'>You currently have ".$daysLeft." days to complete!</div>";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)