Php Basics + jquery Basics 1. compile a function so that it can return the number of weeks (including the two weeks passed in) based on the incoming week number. use JQuery to dynamically add the amount input box for each day in that range based on the selected date range, and display the cumulative value of all day amounts at the end ------ solution ------------------ 1. function & nbsp; between ($ one, $ tow) {php Basics + jquery basics
1. write a function so that it can return the number of weeks (including the two weeks passed in) based on the passed week number)
2. use JQuery to dynamically add the amount input box for each day in that range based on the selected date range, and display the cumulative value of all day amounts at the end.
------ Solution --------------------
1.
function between($one,$tow){
return abs(date('W',$one) - date('W',$two));
}
------ Solution --------------------
2.
Demo