Hallo dedlfix,
stimmt das so denn?
$typeDefinitions = str_repeat( 's' , count( $values ) );
$params = array( $typeDefinitions );
foreach ( $values as $k => $v ) {
${ 'varvar' . $k } = $v;
$params[] = &${ 'varvar' . $k };# provide references
}
$params[]. = &${ 's' . $von };
$params[]. = &${ 's' . $an };
foreach ( $values as $k => $v ) {
${ 'varvar' . $k } = $v;
$params[]. = &${ 'varvar' . $k };# provide references
}
call_user_func_array( array( $stmt , 'bind_param' ) , $params );
$stmt->bind_param("ss", $von, $an);
}
Bis bald! Meowsalot (Bernd)