Creating multiple CPT posts from one Gravity form

I know this is an old post, but a Google search brought me here.

Where are you getting $user_ID and your array $entry ? They are not defined anywhere in your functions.

Where does $entry come from? I know HOW to get the user_ID, but you not doing so anywhere in this code.

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