title: AngularJS SelectedRow Post
body: <p>Where can I make mistakes? I need to click button submitedRows inserted to database.</p>
  
  <pre><code>$http.post("http://localhost/insert.php",{'isbn':$scope.submitedRows[0].isbn},{headers: {'Content-Type' : 'application/x-www-form-urlencoded; charset=UTF-8'}}).success(function(data,status,headers,config) {
       console.log("data inserted successfully");
   });
  </code></pre>
  
  <p>PHP code I can connect to db:</p>
  
  <pre><code>   $db = mysqli_connect($host, $dbuser, $dbpass, $db);
     $data = json_decode(file_get_contents("php://input"));
     $isbn = mysqli_real_escape_string($db, $_POST['isbn']);
     if(! $db )
     {
       die('Could not connect: ' . mysql_error());
     }
      $sql = "INSERT INTO deneme (isbn) VALUES ('".$isbn."');";
  if (mysqli_query($db, $sql)) {
      echo "New record created successfully";
  } else {
      echo "Error: " . $sql . "&lt;br&gt;" . mysqli_error($db);
  }
  </code></pre>