Convert all_day to int in demo php code

Avoid potential sql error due to type mismatch