Hello - Can anyone help me with the function I should extend / create for a query to get the typename for a site from a session contact Id?
Its obviously from the sitetype table ....?
Thanks


echo db_read_column('typename', $GLOBALS['dbSitetypes'], $id);
skyrack_technology wrote:Hi Thomse - as ever, appreciate your tips!
I tried this, but I should have said this is for a form for a portal logged in user, and I'm guessing that the session doesnt know about siteid, only contactid?
So, doing:
- Code: Select all
echo db_read_column('typename', $GLOBALS['dbSitetypes'], $id);
Just returns nothing ....???
function get_sitetypes($id)
{
// hardcode ID = 3 for this example
$id = 3;
global $dbSiteTypes;
return db_read_column('typename', $dbSiteTypes, $id);
}

Return to Plugins & Extending SiT!
Users browsing this forum: No registered users and 1 guest