20VT Clio & 9-5 HOT
Im currently building a website which has an online booking form....
I more of a designer than a programmer lol, but i have found an ideal bit of code which allows booking dates to be requested, and logged in a SQL DB etc. All works good!
The prob is occasionally iv noticed that say monday to monday is selected in the calendar, when it gets to the next step, it sometimes shows the number of days as 6.9583333333333 instead of 7 days!
Does anyone know a bit of php code maybe that will round this particular number off to the nearest whole number. i.e 7?
Iv done a bit of googling but not found a great deal as i dont know much about php at the mo!
I more of a designer than a programmer lol, but i have found an ideal bit of code which allows booking dates to be requested, and logged in a SQL DB etc. All works good!
The prob is occasionally iv noticed that say monday to monday is selected in the calendar, when it gets to the next step, it sometimes shows the number of days as 6.9583333333333 instead of 7 days!
Does anyone know a bit of php code maybe that will round this particular number off to the nearest whole number. i.e 7?
Iv done a bit of googling but not found a great deal as i dont know much about php at the mo!