steelaz Posted October 6, 2010 Share Posted October 6, 2010 I'm writing very simple admin module that needs to store one configuration item (property -> value). Is it OK to use WHMCS "configuration" table for this purpose or should I create new table? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted October 7, 2010 Share Posted October 7, 2010 as a general rule of thumb, I tend to create my own tables for configurations. You never know what may or may not happen to those default whmcs tables in the future. 0 Quote Link to comment Share on other sites More sharing options...
steelaz Posted October 8, 2010 Author Share Posted October 8, 2010 Thanks, I'll go ahead and create my own table, perhaps there will be more stuff I need to write in the future. One more question, when you read WHMCS tables, do you explicitly enter table name or perhaps table names are defined somewhere in the system? If you enter table name, is prefix always "tbl" or can it be changed somewhere? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted October 8, 2010 Share Posted October 8, 2010 The table names are static. You can use the select_query(), insert_querty(), delete_query(), update_query(), and full_querty() functions to make quick work of sql queries. Take a look at some of the open source modules and reports for examples on their usage. 0 Quote Link to comment Share on other sites More sharing options...
steelaz Posted October 8, 2010 Author Share Posted October 8, 2010 Thanks for your help laszlof, I'll do that. 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.