println("just entered the SavePortal method"); $portalid=$adb->getUniqueID('vtiger_portal'); $query="insert into vtiger_portal values(?,?,?,?,?)"; $params=array($portalid,$portalname,$portalurl,0,0); $adb->println($query); $result=$adb->pquery($query,$params); return $portalid; } /** Function to update the portal in database * @param $portalname : Type String * @param $portalurl : Type String * @param $portalid : Type Integer * This function updates the portal with the given $portalname,$portalurl * This Returns $portalid */ function UpdatePortal($portalname,$portalurl,$portalid) { global $adb; $adb->println("just entered the SavePortal method"); $query="update vtiger_portal set portalname=? ,portalurl=? where portalid=?"; $params=array($portalname, $portalurl, $portalid); $adb->println($query); $result=$adb->pquery($query, $params); return $portalid; } ?>