Getting values in gform_confirmation for Gravity Forms [closed]

Okay, the gform_after_submission filter uses $form to get data from specific fields.

However, the gform_confirmation filter uses $lead to get data from specific fields

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)