$instanceId = OC_Util::getInstanceId(); echo $instanceId;
$instanceId = OC_Util::getInstanceId(); $sql = "SELECT * FROM table WHERE instance_id = '$instanceId'"; $result = $db->query($sql);This code retrieves the instance ID using the getInstanceId function and uses it in a SQL query to retrieve data from a table. This can be useful for multi-tenant installations where each tenant has their own data stored in a shared database. The OC_Util class is part of the ownCloud core framework and is available in the `lib/private/util.php` file.