Describe one method in preventing SQL injections.

Include answers th following way: 1a, 2a. 3a …1b.. so onHere is the book: https://files.transtutors.com/cdn/uploadassignments/494497_637253608439458966_learning-php–mysql—javascript–5th-edition-book.pdfA.Refer to Chapter 10 of your textbook to answer the following questions:1.Why is it important to use the tags when creating your login file? What will happen if you forget to enclose your file with these tags?2.What is the advantage of keeping login details in a single place?3.Why is the “require_once” statement preferable than using the “include” statement when including your login files that will need to access the database?4.Why is the “require_once” statement used instead of “require?”5.What three parameters are required when connecting to MySQL?6.Explain the use of the “die” function and in what situations would you use this?B.Refer to Chapter 10 to answer the following questions:1.Why is it important to close a database connection?2.What is the function of $_POST?3.What two reasons did the author mention about staying within PHP code. Do you agree with the author and why or why not?4.When would you describe a table?5.Why is dropping a table considered dangerous?6.What is the purpose of using locks?7.Describe one method in preventing SQL injections.8.Describe one method in preventing XSS injections.