WHMCS! - 如何从MySQL'tblpricing'表中获取特定的客户组价格?

时间:2017-05-22 10:08:14

标签: mysql whmcs

WHMCS!谁知道如何在domainregister表中找到特定客户组的tblpricing价格?我可以使用唯一的ID吗?

TBL Pricing Table

1 个答案:

答案 0 :(得分:0)

Group id is saved to tsetupfee field, so you can use this SQL statement (for group id = 2):

SELECT * FROM tblpricing 
WHERE `tsetupfee` = 2 
AND `type`='domainregister' 
AND `currency`='1' 
AND `relid` = '1'