All pastes #838892 Raw Edit

Untitled

public text v1 · immutable
#838892 ·published 2007-12-30 19:04 UTC
rendered paste body
function nick_mysqli_prepare_execute()
{
        $numargs = func_num_args();
        $args = func_get_args();
        $db = array_shift($args);
        $sql_stmt = array_shift($args);

        if ($check = $db->prepare ($sql_stmt)) {
                call_user_func_array(array($check,'bind_param'), $args);
                $check->execute();
                $check->bind_result($arg_1);
                return $check->fetch();
        }
}