Hi there,
I’m using a recordsset to fill a field in a table. the only downside is that it sums up the numbers instead of show tyhe values as seperated items in the field seperated with a comma.
i use this code
/**
* Selecting a field from another table using the recordset
*/
// Check for record
$check_sql = ‘SELECT op_id’
. ’ FROM ILP_wk_op’
. " WHERE pr_id = ‘" . {wk_id} . "’";
sc_select(rs, $check_sql);
//initialize the field
{klassen} = 0;
if (false == {rs}) // Error while accessing database
{
sc_error_message(‘Error while accessing database.’);
}
else
{
while(!$rs->EOF)
{
{klassen} += $rs->fields[0];
$rs->MoveNext();
}
$rs->Close();
}
{wk_klassen_gekoppeld} = {klassen};
any suggestions