I am new to php and have come across my first real obstacles...
meaning I need to populate a table with names from ANOTHER table of volunteers.
organized by
volunteer_ID, name, phone_num
I am putting up a schedule online and each field is organized by date, position1, position2, position3 etc
where positions are of type INT (relating to ID of person in volunteer table)
NOW, my problem is how can I make a sql statement that will select ONLY the field co-responding to "the next sunday (or today if it's sunday)"
Ie, (SELECT * FROM volunteers WHERE date_index = next sunday)
meaning I need to populate a table with names from ANOTHER table of volunteers.
organized by
volunteer_ID, name, phone_num
I am putting up a schedule online and each field is organized by date, position1, position2, position3 etc
where positions are of type INT (relating to ID of person in volunteer table)
NOW, my problem is how can I make a sql statement that will select ONLY the field co-responding to "the next sunday (or today if it's sunday)"
Ie, (SELECT * FROM volunteers WHERE date_index = next sunday)