skip to Main Content
author
57 views
1 vote

Php – Form validate with foreach only runs first loop

I’m trying to do a bulk-update from a formular and validate the input before posting it to database. But I

author
179 views
2 votes

php loop through array and output date and counter

So I have this code:
$avaDates = [['date_starts'=>'2024-03-01'],['date_starts'=>'2024-03-09'],['date_starts'=>'2024-04-05'],['date_starts'=>'2024-04-09'],['date_starts'=>'2024-04-15'],['date_starts'=>'2024-05-03']];
$sum = 0;
$months = '';
foreach($avaDates as $date){

Back To Top
Search