Um ... If you don't know how to connect a php script to a database, you may have a long road ahead of you. It would be much better to try to get the installation you have to report properly (which it may already be doing, and you may be looking at the report from the wrong perspective ...).
As for someone being able to help you with reporting: Any mysql reporting tool will do. PHP or any other language can generate mysql requests. But if your data is being shown to you by Vicidial reports now, you'll likely end up with the same information when you finish ... and have wasted a lot of time.
You should start here, with our Newbie Advice:
1) Welcome to the Party!
2) As you are obviously new here, I have some suggestions to help us all help you:
When you post, please post your entire configuration including (but not limited to) your installation method and vicidial version with build.
This IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)
You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "from scratch" you must post your operating system and should also post the .iso version from which you installed your original operating system. If your installation is "Hosted" list the site name of the host.
If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.
Similar to This:
Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600