gascione Posted February 7, 2008 Share Posted February 7, 2008 I am trying to develop some site specific reports and find myself hacking throught the DB tables and fields trying to gain an understanding of how the fields interact and where data is stored. I asked whmcs if there was documentation available that describes the tables and fields in the DB. They said no. So how is everyone else getting their information, or is everyone just hacking their way through the tables like I am right now? GA 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 7, 2008 WHMCS CEO Share Posted February 7, 2008 I wouldn't call it hacking, but looking at the tables yes! Once you've added a few sample orders you should be able to see fairly easily how it all relates to each other. Matt 0 Quote Link to comment Share on other sites More sharing options...
gascione Posted February 7, 2008 Author Share Posted February 7, 2008 Thats what I have been doing. It's a tedious process. It would seem that since you have a method to create custom reports the documentation should be provided. One problem I noticed is that there is insconsistent use of field names. The "id" field in one table is not the same as the id in another table. I have run across similar issues as I go. Thank you for your response. GA 0 Quote Link to comment Share on other sites More sharing options...
JasonO Posted February 7, 2008 Share Posted February 7, 2008 Well that depends on what the ID is for? Invoice, client, order, ticket etc 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted February 7, 2008 Share Posted February 7, 2008 `id` on the `tblclients` table is referred to as `userid` everywhere else. Seems quite logical to me. Other tables which contain things needing identifying (all of them, basically) will refer to their items with `id` as well. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.