7272

Because the id_user field is of type "INT" and because your SQL query is between *double* quotes, you should use the version without quotes: " ....       id_user = $currentUserId";