To grab product pricings in your default currency
<?php $result = mysql_query( 'SELECT `tblpricing`.`monthly`'. ' FROM tblpricing'. ' WHERE ((`tblpricing`.`relid` =3) AND (`tblpricing`.`currency` =1) AND (`tblpricing`.`type` ="product"))'. ' LIMIT 0, 30 ') or die(mysql_error());
$row = mysql_fetch_assoc($result);
echo $row['monthly'];?>
That code will do it for monthly pricing - the limit 0,30 can actually be removed!
For annual
<?php $result = mysql_query( 'SELECT `tblpricing`.`annually`'. ' FROM tblpricing'. ' WHERE ((`tblpricing`.`relid` =1) AND (`tblpricing`.`currency` =1) AND (`tblpricing`.`type` ="product"))'. ' LIMIT 0, 30 ') or die(mysql_error());
$row = mysql_fetch_assoc($result);
echo $row['annually'];?>
relid is your product id as specifiied in your other tab for your product in whmcs.
You can pull product addons from the same code by changing type="product" to "addon"