hello I would like to be able to display the registration date for users after the date of 2022-01-25 But my query always shows me the same date
$sqlQuery = 'SELECT * FROM _users WHERE user_registered > "2022-01-25"';
$recipesStatement = $bdd->prepare($sqlQuery);
$recipesStatement->execute();
$recipes = $recipesStatement->fetchAll();
// On affiche chaque date une à une
foreach ($recipes as $recipe) {
?>
<p><?php echo $recipe['user_registered']; ?></p>
<?php
}
sqlQuery = 'SELECT * FROM _users WHERE user_registered > "2022-01-25 00:00:00"'; $recipesStatement = $bdd->prepare($sqlQuery); $recipesStatement->execute(); $recipes = $recipesStatement->fetchAll(); // On affiche chaque date une à une foreach ($recipes as $recipe) {?> <p><?php echo $recipe['user_registered']; ?></p> <?php }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.