Hooking php to pie chart