Enable Magic Quotes using .htaccess file The magic quotes option was introduced to help protect developers from SQL injection attacks.…