I have mysql data base in which i am adding data in mysql data base but problem is that it only stores only one record not more than that.
my table structure is
    <?php
    $con =  mysql_connect("example.com","name","password");
    if (!$con)
     {
     die('Could not connect: ' . mysql_error());
     }
     mysql_select_db("surveyipad", $con);
     $response_id=$_POST['response_id'];
     $participant_id=$_POST['participant_id'];
     $question_id=$_POST['question_id'];
     $answer_text=$_POST['answer_text'];
     $answer_option=$_POST['answer_option'];
     $query=("INSERT INTO survey_question_responses (response_id,participant_id,question_id,answer_text,answer_option)
      VALUES ('', '$participant_id','$question_id','$answer_text','$answer_option')");
       mysql_query($query,$con);
       printf("Records inserted: %d\n", mysql_affected_rows());
     echo($response_id)
   ?>
response id is primary key in table and also set to auto increment
 
     
     
     
    