dear @StefanoVR 1. please read: >How to post code on the forum 2. Function header should be before function declaration ; #FUNCTION# ==================================================================================================================== ; Name...........: My_SQL_Connessione ; Description ...: Si collega al database SQL usando i parametri forniti ; Syntax.........: My_SQL_Connessione ($sPercorso,$sDatabase,$sUser,$sPassword) ; Parameters ....: $sPercorso - Stringa conte