Hello, following php-code works fine.
<?php
{
global $conn, $where_clause;
$sql = "SELECT id FROM OMv_voorwerpen_afvoeren WHERE ".$where_clause;
$res_prepare = prepare_db($conn, $sql);
$res = execute_prepared_db($res_prepare,0);
while ($row = fetch_row_db($res_prepare))...