Skip to content

How to show a list in a time interval in PHP

How to show a list in a time interval in PHP For example: from 00: 00h to 15: 30h on a specific day. I try it this way: I spend 15h and 30 minutes from 00:00 on the same day. The idea is to show the …

Google Charts Pie chart displaying Other 100%

What is wrong with my code? i have read that my values are stored as string so that the chart is showing 100% other. How do i make it work? i tried with (int)$var PHP function, but that does not make it work yet.. Answer Do not generate json by yourself. Use json_encode always:

How to generate this format number YYYYMM0001?

I need to generate a set of number consist of Current Year, Current Month, and Incremental 4 digit with zero leading. with conditions: The last 4 digit number is increment from the last record on database. example: on beginning of month the last 4 digit reset to 0001. example: this is what i have so far: Ques…