Multiple insert into Mysql from an html form using php?

You are performing your query outside of your loop, so only one insert is being performed. Move your query inside your for-loop.

First of all, and most importantly, before you do anything fix the massive security hole in both methods. You are allowing unsanitised user input to be inserted directly into an SQL query which allows SQL injection. You must, without exception, always sanitise input from the user.

To do this pass all of the variables through mysql_real_escape_string before you put them in your query. You have sanitised some input, but you don't for example sanitise $date. I assume this is because it is coming from a date picker and you don't see the risk.

You should never rely on anything client-side for security because it can always be changed - always include server side validation and sanitisation. A malicious user could, for example, modify the date through their own javascript before posting it to your server.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions